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

availabilityChannel → EventChannel
Verdict stream, one native subscription covering every watched product. Exposed for tests, which mock its stream handler.
final
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

availabilityUpdates(AppwinProduct product) → Stream<AppwinInitResult>
The verdict for product, then each change to it. See AppwinCore.availabilityUpdates.
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
handlePushForeground(Map<String, dynamic> data, {String? title, String? body}) → Future<bool>
Routes a push received in the foreground. See AppwinPush.handleForeground.
override
handlePushMessage(Map<String, dynamic> data) → Future<bool>
Routes a data or silent message. See AppwinPush.handleMessage.
override
handlePushTap(Map<String, dynamic> data) → Future<bool>
Routes a tap on a notification. See AppwinPush.handleTap.
override
hasRegisteredPushToken() → Future<bool>
Whether a push token was registered in this process. See AppwinCore.hasRegisteredPushToken.
override
identify(String externalId, {AppwinUserAttributes? attributes}) → Future<void>
Signs a user in. See AppwinCore.identify.
override
isAppwinPush(Map<String, dynamic> data) → Future<bool>
Whether data is an Appwin push. See AppwinPush.isAppwinPush.
override
logout() → Future<void>
Signs the user out. See AppwinCore.logout.
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
setConsent(AppwinConsentState state, {AppwinConsentPurpose? purpose}) → Future<void>
Sets the consent state, for one purpose or for all three. See AppwinCore.setConsent.
override
toString() → String
A string representation of this object.
inherited
track(String name, {Map<String, Object?>? props}) → Future<void>
Reports an event to the unified stream. See AppwinCore.track.
override
updateUser(AppwinUserAttributes attributes) → Future<void>
Writes user attributes. See AppwinCore.updateUser.
override

Operators

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