MethodChannelOnebearChat class
Method-channel implementation of OnebearChatPlatform. Two additional EventChannels
carry native → Dart pushes that a request/response MethodChannel can't: unreadCount
(mirrors the native StateFlow<Int> / delegate) and events (chatOpened/chatClosed/
newMessageReceived/linkTapped/errorOccurred).
- Inheritance
-
- Object
- PlatformInterface
- OnebearChatPlatform
- MethodChannelOnebearChat
Constructors
Properties
-
events
→ Stream<
OnebearChatEvent> -
no setteroverride
- eventsChannel → EventChannel
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
unreadCount
→ Stream<
int> -
no setteroverride
- unreadCountChannel → EventChannel
-
final
Methods
-
configure(
{required String publicKey, required String apiBaseUrl}) → Future< void> -
override
-
identify(
OnebearIdentity identity) → Future< void> -
override
-
logout(
) → Future< void> -
Erases session token, visitor token, unread count, pending messages, and the push
registration — call on sign-out so the next person on a shared device never sees the
previous user's conversation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
present(
) → Future< void> -
Always full-screen in v1 — see the design spec's §2 rationale (a WebView nested inside
a host scroll container produces gesture/keyboard-inset bugs that never fully resolve).
override
-
setCustomFields(
Map< String, String> fields) → Future<void> -
override
-
setLanguage(
String language) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited