CobiFlutterServicePlatform class abstract

The interface that implementations of cobi_flutter_service must implement.

Platform implementations should extend this class rather than implement it as cobi_flutter_service does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added CobiFlutterServicePlatform methods.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
isMock bool
Only mock implementations should set this to true.
no setter
onDataReceived Stream
no setter
onServiceStateChanged Stream<bool?>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

executeAction(String action) Future<bool?>
getAutostartOnBoot() Future<bool>
getForegroundMode() Future<bool?>
init(dynamic isolateCallback(), CobiFlutterServiceCallback callback, bool autostartOnBoot) Future<void>
initService(CobiFlutterServiceCallback callback, bool autostartOnBoot) Future<void>
isServiceRunning() Future<bool?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendData(dynamic data) Future<bool?>
setAutostartOnBoot(dynamic value) Future<bool>
setForegroundMode(bool foreground) Future<bool?>
setIsolateCallback(dynamic isolateCallback()) → void
setNotificationData(CobiNotificationData data) Future<bool?>
startService() Future<bool?>
stopService() Future<bool?>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance CobiFlutterServicePlatform
The default instance of CobiFlutterServicePlatform to use.
getter/setter pair