Chat class
Created by Injoit on 2019-12-27. Copyright © 2019 Quickblox. All rights reserved.
Constructors
- Chat()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
int userId, String password) → Future< void> -
createDialog(
int dialogType, {List< int> ? occupantsIds, String? dialogName, String? dialogPhoto, Map<String, Object> ? customData}) → Future<QBDialog?> -
deleteDialog(
String dialogId, {bool? force}) → Future< void> -
disconnect(
) → Future< void> -
getDialogMessages(
String dialogId, {QBSort? sort, QBFilter? filter, int limit = 100, int skip = 0, bool markAsRead = false}) → Future< List< QBMessage?> > -
getDialogs(
{QBSort? sort, QBFilter? filter, int? limit, int? skip}) → Future< List< QBDialog?> > -
getDialogsCount(
{QBFilter? qbFilter, int? limit, int? skip}) → Future< int?> -
getOnlineUsers(
String dialogId) → Future -
getTotalUnreadMessagesCount(
{List< String> ? dialogIds}) → Future<QBMessagesCounter?> -
isConnected(
) → Future< bool?> -
isEnabledNotificationDialog(
String dialogId) → Future< bool?> -
isJoinedDialog(
String dialogId) → Future< bool> -
joinDialog(
String dialogId) → Future< QBDialog?> -
leaveDialog(
String dialogId) → Future< void> -
markMessageDelivered(
QBMessage qbMessage) → Future< void> -
markMessageRead(
QBMessage qbMessage) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pingServer(
) → Future< bool> -
pingUser(
int userId) → Future< bool> -
sendIsTyping(
String dialogId) → Future< void> -
sendMessage(
String dialogId, {String? body, List< QBAttachment> ? attachments, Map<String, String> ? properties, bool markable = false, bool? saveToHistory}) → Future<void> -
sendStoppedTyping(
String dialogId) → Future< void> -
sendSystemMessage(
int recipientId, {Map< String, String> ? properties}) → Future<void> -
subscribeChatEvent(
String eventName, dynamic eventMethod, {dynamic onErrorMethod}) → Future< StreamSubscription> -
toString(
) → String -
A string representation of this object.
inherited
-
updateDialog(
String dialogId, {List< int> ? addUsers, List<int> ? removeUsers, String? dialogName, String? dialogPhoto, Map<String, Object> ? customData}) → Future<QBDialog?> -
updateNotificationDialog(
String dialogId, bool enabled) → Future< bool?>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CHANNEL_NAME → const String
- //////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
- CONNECT_METHOD → const String
- CREATE_DIALOG_METHOD → const String
- DELETE_DIALOG_METHOD → const String
- DISCONNECT_METHOD → const String
- GET_DIALOG_MESSAGES_METHOD → const String
- GET_DIALOGS_COUNT_METHOD → const String
- GET_DIALOGS_METHOD → const String
- GET_ONLINE_USERS_METHOD → const String
- GET_TOTAL_UNREAD_MESSAGES_COUNT_METHOD → const String
- IS_CONNECTED_METHOD → const String
- IS_ENABLED_NOTIFICATION_DIALOG → const String
- IS_JOINED_DIALOG_METHOD → const String
- JOIN_DIALOG_METHOD → const String
- LEAVE_DIALOG_METHOD → const String
- MARK_MESSAGE_DELIVERED_METHOD → const String
- MARK_MESSAGE_READ_METHOD → const String
- PING_SERVER_METHOD → const String
- PING_USER_METHOD → const String
- SEND_IS_TYPING_METHOD → const String
- SEND_MESSAGE_METHOD → const String
- SEND_STOPPED_TYPING_METHOD → const String
- SEND_SYSTEM_MESSAGE_METHOD → const String
- UPDATE_DIALOG_METHOD → const String
- UPDATE_NOTIFICATION_DIALOG → const String