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
-
events
→ Stream<
AppwinCommunityEvent> -
The member's own actions. See
AppwinCommunity.events.latefinal - eventsChannel → EventChannel
-
The member's own actions. Exposed for tests.
final
- 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
- unreadCountChannel → EventChannel
-
The live unread count. Exposed for tests.
final
-
unreadNotificationCountStream
→ Stream<
int> -
The live unread count. See
AppwinCommunity.unreadNotificationCountStream.no setteroverride
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 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openPost(
String postId, {String? commentId}) → Future< void> -
Opens a post, and optionally a reply thread. See
AppwinCommunity.openPost.override -
presentCommunity(
{ProfileEditingHandlers profileEditing = const ProfileEditingHandlers()}) → Future< void> -
Presents the community full screen over the app.
override
-
setHostCallbacks(
{void onNotificationTap(AppwinCommunityPostTarget target)?}) → Future< void> -
Installs the host's handler, or removes it when
null, and tells the native SDK whether it exists. SeeAppwinCommunity.onNotificationTap.override -
setProfileEditing(
int viewId, ProfileEditingHandlers? handlers) → void -
Registers the profile editing handlers of a native view, by platform view
id, or removes them when
null. SeeAppwinCommunityView.onEditProfile.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