AppwinCommunityMethodChannel class
Method-channel implementation of AppwinCommunityPlatform.
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
- AppwinCommunityPlatform
- AppwinCommunityMethodChannel
Constructors
- AppwinCommunityMethodChannel()
- 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_communityon 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
-
getPlatformVersion(
) → Future< String?> -
Host OS and version, for checking the bridge is alive. See
AppwinCommunity.getPlatformVersion.override -
initialize(
) → Future< AppwinInitResult> -
Initialises the SDK.
baseUrlserves development, to point at a local API. locale ; en prod, laissernull. Whether this app may use Community. SeeAppwinCommunity.initialize.override -
login(
{required String externalId}) → Future< void> -
Attaches the member to one of your users. See
AppwinCommunity.login.override -
logout(
) → Future< void> -
Returns to an anonymous profile. See
AppwinCommunity.logout.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
presentCommunity(
) → Future< void> -
Presents the community full screen over the app.
override
-
setUser(
{String? nickname, String? avatarUrl, String? bio}) → Future< AppwinCommunityUser?> -
Pushes the identity the host app knows to the community profile.
Pushes nickname, photo and bio. See
AppwinCommunity.setUser.override -
toString(
) → String -
A string representation of this object.
inherited
-
unreadNotificationCount(
) → Future< int> -
Unread notifications, for a badge on the tab.
Unread count for a badge. See
AppwinCommunity.unreadNotificationCount.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited