MethodChannelTwilioConversationSdk class

An implementation of TwilioConversationSdkPlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addParticipant({required String conversationId, required String participantName}) Future<String?>
Add participant in a conversation #
override
createConversation({required String conversationName, required String identity}) Future<String?>
Create new conversation #
override
deleteConversation({required String conversationId}) Future<String?>
delete conversation #
override
deleteMessage({required String conversationId, required int index}) Future<String?>
delete message #
override
generateToken({required String accountSid, required String apiKey, required String apiSecret, required String identity, required String serviceSid, required String pushSid}) Future<String?>
Generate token and authenticate user (only for Android) #
override
getConversations() Future<List?>
Get list of conversations for logged in user #
override
getLastMessages({required String conversationId}) Future<List?>
Get list of conversations for logged in user last message#
override
getMessages({required String conversationId, int? messageCount}) Future<List?>
Get messages from the specific conversation #
override
getParticipants({required String conversationId}) Future<List?>
Get participants from the specific conversation #
override
getParticipantsWithName({required String conversationId}) Future<List?>
Get participants with name from the specific conversation #
override
getPlatformVersion() Future<String?>
override
getUnReadMsgCount({required String conversationId}) Future<List?>
Get list of conversations for logged in user last message unread count#
override
initializeConversationClient({required String accessToken}) Future<String?>
override
joinConversation({required String conversationId}) Future<String?>
Join the existing conversation #
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
receiveMessages({required String conversationId}) Future<String?>
Get messages from the specific conversation #
override
registerFCMToken({required String fcmToken}) Future<String?>
Register FCM Token #
override
removeParticipant({required dynamic conversationId, required dynamic participantName}) Future<String?>
override
sendMessage({required String conversationId, required String message, dynamic attribute}) Future<String?>
Send message #
override
sendMessageWithMedia({required String message, required String conversationId, dynamic attribute, required String mediaFilePath, required String mimeType, required String fileName}) Future<String?>
Send message with media #
override
subscribeToMessageUpdate({required String conversationId}) Future<String>
override
toString() String
A string representation of this object.
inherited
unregisterFCMToken({required String fcmToken}) Future<String?>
UnRegister FCM Token #
override
unSubscribeToMessageUpdate({required String conversationId}) Future<String>
override
updateAccessToken({required String accessToken}) Future<Map?>
override

Operators

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