schemas/reader library

Apple's reader App Schemas, as typed annotations.

Annotate a class with an entity annotation, such as @ReaderPage(...), and its fields with @ReaderPageField.<member>.

Classes

FixedReaderPage
A fixed reader.page instance, for schemas that require one.
ReaderDocument
Adopts Apple's reader.document schema ("Document", iOS 18+, macOS 15+).
ReaderDocumentField
Members of reader.document, used as field annotations: @ReaderDocumentField.title ….
ReaderDocumentKind
reader.documentKind ("Document Kind"), whose cases the app defines: put @ReaderDocumentKind() on a Dart enum, and each of its values becomes a case Siri can use.
ReaderDocumentSchema
Marks members of reader.document.
ReaderPage
Adopts Apple's reader.page schema ("Page", iOS 18+, macOS 15+).
ReaderPageField
Members of reader.page, used as field annotations: @ReaderPageField.label ….
ReaderPageSchema
Marks members of reader.page.