JackfieldPlatform class abstract
Typed adapter contract for platform plugin implementations.
Extend this class to retain token verification and unsupported defaults. Register before the application's first access to Jackfield.instance. Durable adapters must persist events before publishing, replay the pending inbox on stream attachment, and keep action, Flutter and HTTP receipts separate.
- Inheritance
-
- Object
- PlatformInterface
- JackfieldPlatform
- Implementers
Constructors
- JackfieldPlatform()
- Constructs a token-verified platform adapter.
Properties
-
events
→ Stream<
JackfieldEvent> -
Broadcast durable events; attachment must replay unacknowledged events.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
pushTokenUpdates
→ Stream<
PushTokenUpdate> -
Broadcast changes to provider tokens, without permission prompts.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acknowledgeEvents(
Set< EventId> ids) → Future<JackfieldResult< void> > - Acknowledges Flutter delivery only; never completes actions or HTTP delivery.
-
capabilities(
) → Future< JackfieldCapabilities> - Reports the available features and actual presentation mechanism.
-
completeAction(
ActionId id, ActionResult result) → Future< JackfieldResult< void> > - Completes an OS action after application work; never acknowledges events.
-
diagnostics(
) → Future< JackfieldDiagnostics> - Reads permission and queue health without exposing tokens or credentials.
-
endCall(
CallId id, EndReason reason) → Future< JackfieldResult< CallSnapshot> > - Ends the specified call with an explicit termination reason.
-
initialize(
JackfieldConfiguration configuration) → Future< JackfieldResult< void> > - Initializes the adapter without requesting system permissions.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pushTokens(
) → Future< JackfieldResult< PushTokenSnapshot> > - Returns all currently known provider tokens without requesting permission.
-
reportIncomingCall(
IncomingCall call) → Future< JackfieldResult< CallSnapshot> > - Reports an incoming call using its stable call-attempt identity.
-
startOutgoingCall(
OutgoingCall call) → Future< JackfieldResult< CallSnapshot> > - Starts the system presentation of an outgoing call; the app owns media.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCall(
CallUpdate update) → Future< JackfieldResult< CallSnapshot> > - Updates the system presentation of an existing call.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ JackfieldPlatform
-
The registered adapter, defaulting to the method-channel implementation.
getter/setter pair