RitoNativeBindings class final

Blocking C ABI binding. Applications should normally use RitoNativeGateway, which drives a session's protocol over it.

Constructors

RitoNativeBindings({RitoArtifactDecoder artifactDecoder = const RitoArtifactDecoder(), RitoResourceDecoder resourceDecoder = const RitoResourceDecoder(), RitoFootnoteDecoder footnoteDecoder = const RitoFootnoteDecoder()})
RitoNativeBindings.fromDynamicLibrary(DynamicLibrary library, {RitoArtifactDecoder artifactDecoder = const RitoArtifactDecoder(), RitoResourceDecoder resourceDecoder = const RitoResourceDecoder(), RitoFootnoteDecoder footnoteDecoder = const RitoFootnoteDecoder()})
Opens symbols from an explicitly supplied library for tests and native embedding diagnostics. Product callers should use the default constructor so Flutter resolves the bundled Native Asset.

Properties

artifactDecoder → RitoArtifactDecoder
final
footnoteDecoder → RitoFootnoteDecoder
final
hashCode → int
The hash code for this object.
no setterinherited
resourceDecoder → RitoResourceDecoder
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

adoptBackgroundCandidateEncoded({required int sessionId, required Uint8List requestBytes}) → Uint8List
adoptForegroundCandidateEncoded({required int sessionId, required Uint8List requestBytes}) → Uint8List
advanceBackgroundEncoded({required int sessionId, required Uint8List requestBytes}) → Uint8List
annotationEncoded({required int sessionId, required Uint8List requestBytes}) → Uint8List
commitPeekedArtifactEncoded({required int sessionId, required Uint8List requestBytes}) → Uint8List
contentShardsNear({required int sessionId, required String href}) → List<int>
Every content shard id, ordered for supplying ahead of need from the chapter at href; empty for a session opened from an archive.
dispose({required int sessionId}) → void
exactSourceRangeEncoded({required int sessionId, required Uint8List requestBytes}) → Uint8List
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openEncoded({required Uint8List publicationBytes, required Uint8List requestBytes, RitoPinnedFontPolicy? pinnedFontPolicy}) → RitoArtifact
openShardsEncodedWire({required Uint8List skeletonBytes, Uint8List? skeletonKey, required Uint8List requestBytes, required RitoPinnedFontPolicy pinnedFontPolicy}) → Uint8List
Opens a reader from a publication's skeleton shard and requests its initial artifact, returning the encoded RITOART1.
peekAdjacentEncoded({required int sessionId, required Uint8List requestBytes}) → RitoArtifact
peekSpreadEncoded({required int sessionId, required Uint8List requestBytes}) → RitoArtifact
One spread of the revision behind an artifact, addressed by its position in that revision's layout, from a 48-byte RITOSPQ1 request.
readFootnote({required int sessionId, required int artifactId, required String key}) → RitoFootnote
readPage({required int sessionId, required int artifactId, required int pageIndex}) → RitoPageRecords
What page pageIndex of a live artifact holds for a host.
readPublicationEncoded({required int sessionId}) → Uint8List
readResource({required int sessionId, required int artifactId, required RitoResourceKind kind, required String href}) → RitoResource
releaseArtifact({required int sessionId, required int artifactId}) → void
requestAdjacentEncoded({required int sessionId, required Uint8List requestBytes}) → RitoArtifact
requestArtifactEncoded({required int sessionId, required Uint8List requestBytes}) → RitoArtifact
searchEncoded({required int sessionId, required Uint8List requestBytes}) → Uint8List
supplyShard({required int sessionId, required Uint8List shardBytes, Uint8List? key}) → int
Hands an open reader one content shard; returns its id.
textInteractionEncoded({required int sessionId, required Uint8List requestBytes}) → Uint8List
textRangeGeometryEncoded({required int sessionId, required Uint8List requestBytes}) → Uint8List
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited