MXChatConfig Class Reference

Inherits from NSObject
Declared in MXChatConfig.h

Overview

An MXChatConfig class defines behavious in chats, and custom actions when interacting with chat views.

  parentGuardEnabled

A boolean value indicating whether the parent guard feature is enabled. The default value is YES. 17 years old warings dialog will pop up in some case if parent guard is enabled.

@property (nonatomic, assign, getter=isParentGuardEnabled) BOOL parentGuardEnabled

Declared In

MXChatConfig.h

  importOtherChatEnabled

A boolean value indicating whether importing other chats to a chat is enabled. The default value is YES.

@property (nonatomic, assign, getter=isImportOtherChatEnabled) BOOL importOtherChatEnabled

Declared In

MXChatConfig.h

  chatCreationFeedEnabled

A boolean value indicating whether should show the chat creation feed. The default value is YES.

@property (nonatomic, assign, getter=isChatCreationFeedEnabled) BOOL chatCreationFeedEnabled

Declared In

MXChatConfig.h

  saveToAlbumEnabled

A boolean value indicating whether saving images to album is enabled. The default value is YES.

@property (nonatomic, assign, getter=isSaveToAlbumEnabled) BOOL saveToAlbumEnabled

Declared In

MXChatConfig.h

  multiTabsEnabled

A boolean value indicating whether multi-tabs in chats is enabled. The default value is YES.

@property (nonatomic, assign, getter=isMultiTabsEnabled) BOOL multiTabsEnabled

Declared In

MXChatConfig.h

  didTapShareButton

Called when the share button of a file option menu is tapped.

@property (nonatomic, copy, nullable) void ( ^ ) ( MXChat *chat , UIViewController *viewController , id sender , NSURL *shareLink , NSURL *downloadLink ) didTapShareButton

Declared In

MXChatConfig.h

  didTapMemberAvatar

Called when avatars of members are tapped.

@property (nonatomic, copy, nullable) void ( ^ ) ( MXChat *chat , UIViewController *viewController , id sender , MXUserItem *userItem ) didTapMemberAvatar

Declared In

MXChatConfig.h

  didLongPressMemberAvatar

Called when avatars of members are long pressed.

@property (nonatomic, copy, nullable) void ( ^ ) ( MXChat *chat , UIViewController *viewController , id sender , MXUserItem *userItem ) didLongPressMemberAvatar

Declared In

MXChatConfig.h

  didTapAddFilesButton

Called when the add files button is tapped.

@property (nonatomic, copy, nullable) void ( ^ ) ( MXChat *chat , UIViewController *viewController , id sender ) didTapAddFilesButton

Declared In

MXChatConfig.h

  didTapMoreFilesButton

Called when the more files button is tapped.

@property (nonatomic, copy, nullable) void ( ^ ) ( MXChat *chat , UIViewController *viewController , id sender ) didTapMoreFilesButton

Declared In

MXChatConfig.h

  didTapJoinMeetButtonInFeed

Called when the join meet button in feed is tapped.

@property (nonatomic, copy, nullable) void ( ^ ) ( MXChat *chat , NSString *meetId , UIViewController *viewController , id sender ) didTapJoinMeetButtonInFeed

Declared In

MXChatConfig.h

  didCopyFilesHandler

Called when some files have been copied to another chat.

@property (nonatomic, copy, nullable) void ( ^ ) ( MXChat *fromChat , MXChat *toChat , UIViewController *viewController , NSArray<MXFileItem*> *files ) didCopyFilesHandler

Declared In

MXChatConfig.h

  didMoveFilesHandler

Called when some files have been moved to another chat.

@property (nonatomic, copy, nullable) void ( ^ ) ( MXChat *fromChat , MXChat *toChat , UIViewController *viewController , NSArray<MXFileItem*> *files ) didMoveFilesHandler

Declared In

MXChatConfig.h

  chatMessageModifyHandler

When send a new message, SDK calls this block to get a modified message. You can use this block to modify original messages before they are sended.

@property (nonatomic, copy, nullable) NSString *^ ) ( MXChat *chat , UIViewController *viewController , NSString *originalMessage ) chatMessageModifyHandler

Declared In

MXChatConfig.h