RitoNativeBindings class final

Blocking C ABI binding. Applications should normally use RitoIsolateGateway, which constructs this binding on a worker isolate.

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
commitPeekedArtifactEncoded({required int sessionId, required Uint8List requestBytes}) → Uint8List
dispose({required int sessionId}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openEncoded({required Uint8List publicationBytes, required Uint8List requestBytes, RitoPinnedFontPolicy? pinnedFontPolicy}) → RitoArtifact
peekAdjacentEncoded({required int sessionId, required Uint8List requestBytes}) → RitoArtifact
readFootnote({required int sessionId, required int artifactId, required String key}) → RitoFootnote
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
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