AppwinCoreMethodChannel class

Method-channel implementation of AppwinCorePlatform.

Registered automatically; you should not need to construct one. It is public so a test can reach methodChannel and stub the native side.

Inheritance

Constructors

AppwinCoreMethodChannel()
Creates the default implementation.

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
Channel shared with the native plugins, named appwin_core on both sides. Exposed for tests, which stub it rather than the whole platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bootstrapSession({String? externalId}) Future<String>
Opens the session and returns its token. See AppwinCore.bootstrapSession.
override
clearIdentity() Future<void>
Forgets the local identity without revoking anything server-side. See AppwinCore.clearIdentity.
override
configure({required String appId, String? baseUrl, String? realtimeBaseUrl}) Future<void>
Prepares the SDK for this app. See AppwinCore.configure.
override
deviceId() Future<String?>
The stable device id, null before configure. See AppwinCore.deviceId.
override
getPlatformVersion() Future<String?>
Host OS and version, for checking the bridge is alive. See AppwinCore.getPlatformVersion.
override
hasRegisteredPushToken() Future<bool>
Whether a push token was registered in this process. See AppwinCore.hasRegisteredPushToken.
override
identify({required String externalId}) Future<void>
Attaches the device to one of your users. See AppwinCore.identify.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerPushToken({required String token, String? platform, bool pushOptIn = true}) Future<void>
Registers this device's push token. See AppwinCore.registerPushToken.
override
signOut() Future<void>
Revokes the session and returns to an anonymous profile. See AppwinCore.signOut.
override
toString() String
A string representation of this object.
inherited

Operators

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