MethodChannelTwilioChatConversation class
An implementation of TwilioChatConversationPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- TwilioChatConversationPlatform
- MethodChannelTwilioChatConversation
Constructors
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
-
generateToken(
{required String accountSid, required String apiKey, required String apiSecret, required String identity, required String serviceSid}) → Future< String?> -
Generate token and authenticate user (only for Android) #
override
-
getConversations(
) → Future< List?> -
Get list of conversations for logged in user #
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
-
getPlatformVersion(
) → Future< String?> -
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
-
removeParticipant(
{required dynamic conversationId, required dynamic participantName}) → Future< String?> -
override
-
sendMessage(
{required String conversationId, required String message}) → Future< String?> -
Send message #
override
-
subscribeToMessageUpdate(
{required String conversationId}) → Future< String> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
unSubscribeToMessageUpdate(
{required String conversationId}) → Future< String> -
override
-
updateAccessToken(
{required String accessToken}) → Future< Map?> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited