Skip to main content

Module selectors

Module selectors 

Expand description

Reading a published resource the way a skill’s selector reads it.

Every resource a running app publishes says what it is: its kind, its label, and the words it shows beside it. A skill’s Selector reads exactly that, so which skills a resource may be asked with is answered from the live catalogue an agent, a script and a screen reader see — never from anything a window draws and never from a second index of the apps.

Structs§

RowSubject
A catalogue row’s resource, as a selector reads it.

Constants§

BADGE
The catalogue’s field naming what a resource shows beside its label.
KIND
The catalogue’s field naming the resource kind a row is of, as Selector::to_syntax writes it: kind in [ebook.book].
LABEL
The catalogue’s field naming a resource’s label: the words it presents itself with.

Functions§

subject
row’s resource, read the way a skill’s selector reads it.