AppwinSupportMethodChannel class
An implementation of AppwinSupportPlatform that uses method channels.
Registered automatically; you should not need to construct one. It is public so a test can reach methodChannel and stub the native side.
- Inheritance
-
- Object
- PlatformInterface
- AppwinSupportPlatform
- AppwinSupportMethodChannel
Constructors
- AppwinSupportMethodChannel()
- Creates the default implementation.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPlatformVersion(
) → Future< String?> -
Host OS and version, for checking the bridge is alive. See
AppwinSupport.getPlatformVersion.override -
initialize(
) → Future< AppwinInitResult> -
Initialises the SDK.
baseUrlis optional, an API URL override useful in development to point at localhost. Whether this app may use Support. SeeAppwinSupport.initialize.override -
loginIdentifiedUser(
{required String externalId}) → Future< void> -
Attaches the customer to one of your users. See
AppwinSupport.loginIdentifiedUser.override -
loginUnidentifiedUser(
) → Future< void> -
Opens a session for an unnamed visitor. See
AppwinSupport.loginUnidentifiedUser.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
presentMessenger(
) → Future< void> -
Presents the native Appwin messenger over the host app.
Presents the messenger. See
AppwinSupport.presentMessenger.override -
toString(
) → String -
A string representation of this object.
inherited
-
updateUser(
{String? email, String? name, String? avatarUrl, String? language, String? timezone, String? location}) → Future< void> -
Updates the current customer's attributes, Intercom style. Does not
affect the identity (externalId), which keeps the one set at the last
login. Every field is optional.
Enriches the customer record. See
AppwinSupport.updateUser.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited