MethodChannelDimeloFlutter class

An implementation of DimeloFlutterPlatform that uses method channels.

This class handles communication between Flutter and native platforms (Android/iOS) for Dimelo messaging functionality.

Inheritance

Properties

eventChannel EventChannel
Getter for the event channel.
no setter
eventStream Stream<Map<String, dynamic>>
Get a stream of Dimelo events.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
Getter for the method channel.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAppBarConfig() Future<Map<String, dynamic>>
Get the current app bar configuration.
override
getCurrentUser() Future<Map<String, dynamic>>
Get the current user information.
override
getPlatformVersion() Future<String?>
Get the platform version information.
override
getUnreadCount() Future<int>
Fetch unread messages count from the SDK.
override
handlePush(Map<String, String> payload) Future<bool>
Let the SDK handle an incoming push payload.
override
initialize({String? applicationSecret, String? apiKey, String? apiSecret, String? domain, String? userId, bool? developmentApns}) Future<bool>
Initialize Dimelo/Engage Digital Messaging SDK on the native side.
override
isAvailable() Future<bool>
Check if the SDK was initialized and is available.
override
logout() Future<bool>
Logout/clear the current user session if supported.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAppBarColor(String color) Future<bool>
Set the app bar color dynamically.
override
setAppBarTitle(String title) Future<bool>
Set the app bar title dynamically.
override
setAppBarTitleColor(String color) Future<bool>
Set the app bar title color dynamically.
override
setAppBarVisibility({required bool visible}) Future<bool>
Set the app bar visibility dynamically.
override
setAuthInfo(Map<String, String> info) Future<bool>
Set arbitrary authentication info key/values (e.g., ticket_id).
override
setBackArrowColor(String color) Future<bool>
Set the back arrow color dynamically.
override
setBackButtonVisibility({required bool visible}) Future<bool>
Set the back button visibility dynamically.
override
setDeviceToken(String token) Future<bool>
Pass the device push token to the SDK.
override
setFullScreenPresentation({required bool fullScreen}) Future<bool>
Set the presentation style for iOS (full screen vs bottom sheet).
override
setUser({String? userId, String? name, String? email, String? phone}) Future<bool>
Set/update the current user information.
override
showMessenger() Future<bool>
Open the messaging UI if available on the native SDK.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited