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
Methods
-
clearValues(
String? appGroup) → Future< void> - Removes every stored value.
-
featureEvents(
String feature, String stream, Object? arguments) → Stream< Object?> -
Listens to the
streamof the native feature registered underfeature. -
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.
-
getInitialLink(
) → Future< String?> - The extension link that launched the app, if any.
-
getValue(
String? appGroup, String key) → Future< Object?> -
Reads the value stored under
key, ornullif there is none. -
invokeFeature(
String feature, String method, Object? arguments) → Future< Object?> -
Calls
methodon the native feature registered underfeature. -
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
valueunderkey, 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