BackgroundSocketConnectPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- BackgroundSocketConnectPlatform
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
{required String url, Map< String, String> ? headers}) → Future<bool> -
disconnect(
) → Future< bool> -
getConnectionStatus(
) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendMessage(
String message) → Future< bool> -
setBackgroundMode(
bool enabled) → Future< bool> -
setOnConnectedCallback(
dynamic callback()) → void -
setOnDisconnectedCallback(
dynamic callback(int code, String reason)) → void -
setOnErrorCallback(
dynamic callback(String error)) → void -
setOnMessageCallback(
dynamic callback(String message)) → void -
startBackgroundService(
) → Future< bool> -
stopBackgroundService(
) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ BackgroundSocketConnectPlatform
-
getter/setter pair