OnebearChatPlatform class abstract
The platform-agnostic contract OnebearChat delegates to. A future non-method-channel implementation (e.g. a fake for tests, or a different transport) only has to extend this.
- Inheritance
-
- Object
- PlatformInterface
- OnebearChatPlatform
- Implementers
Constructors
Properties
-
events
→ Stream<
OnebearChatEvent> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
unreadCount
→ Stream<
int> -
no setter
Methods
-
configure(
{required String publicKey, required String apiBaseUrl}) → Future< void> -
identify(
OnebearIdentity identity) → Future< void> -
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.
-
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).
-
setCustomFields(
Map< String, String> fields) → Future<void> -
setLanguage(
String language) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ OnebearChatPlatform
-
getter/setter pair