ExtensionBridgePlatform class abstract

The interface that every platform implementation of the bridge extends.

App code uses ExtensionBridge instead. This class is public so platform implementations and tests can replace instance.

Values crossing this interface are limited to what the standard message codec supports. Storage values are additionally limited to bool, int, double, String and Uint8List.

Inheritance
  • Object
  • PlatformInterface
  • ExtensionBridgePlatform
Implementers

Constructors

ExtensionBridgePlatform()
Constructs an ExtensionBridgePlatform.

Properties

hashCode → int
The hash code for this object.
no setterinherited
Extension links received while the app is running.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearValues(String? appGroup) → Future<void>
Removes every stored value.
featureEvents(String feature, String stream, Object? arguments) → Stream<Object?>
Listens to the stream of the native feature registered under feature.
getAllValues(String? appGroup) → Future<Map<String, Object>>
Reads every stored value.
getFilesDirectory(String? appGroup) → Future<String?>
The absolute path of the directory shared with app extensions.
The extension link that launched the app, if any.
getValue(String? appGroup, String key) → Future<Object?>
Reads the value stored under key, or null if there is none.
invokeFeature(String feature, String method, Object? arguments) → Future<Object?>
Calls method on the native feature registered under feature.
isBackgroundExecutionSupported() → Future<bool>
Whether native code can run Dart in the background on this platform.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerBackgroundCallback({required int dispatcherHandle, required int callbackHandle}) → Future<void>
Persists the raw callback handles used to start a background isolate.
removeValue(String? appGroup, String key) → Future<void>
Removes the value stored under key.
setValue(String? appGroup, String key, Object value) → Future<void>
Stores value under key, replacing any previous value.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ↔ ExtensionBridgePlatform
The implementation used by ExtensionBridge.
getter/setter pair