IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMTopicInfo

Properties

NSString * topicID
 
NSString * topicName
 
NSString * topicFaceURL
 
NSString * introduction
 
NSString * notification
 
BOOL isAllMuted
 
uint32_t selfMuteTime
 
NSString * customString
 
V2TIMReceiveMessageOpt recvOpt
 
NSString * draftText
 
uint64_t unreadCount
 
V2TIMMessagelastMessage
 
uint64_t readSequence
 
NSArray< V2TIMGroupAtInfo * > * groupAtInfolist
 
uint32_t createTime
 
uint64_t defaultPermissions
 

Property Documentation

◆ topicID

- (NSString*) topicID
readwritenonatomicstrong

Topic ID. The topic ID can only be set when a topic is created or when the topic information is modified. The format is: community ID + @TOPIC_xxx. For example, if the community ID is @TGS_123, then the topic ID is @TGS_123@TOPIC_xxx.

◆ topicName

- (NSString*) topicName
readwritenonatomicstrong

Topic name The maximum length of the topic name is 150 bytes, encoded in UTF-8.

◆ topicFaceURL

- (NSString*) topicFaceURL
readwritenonatomicstrong

Topic face The maximum length of the URL is 500 bytes, encoded in UTF-8.

◆ introduction

- (NSString*) introduction
readwritenonatomicstrong

Topic introduction The maximum length of the topic introduction is 400 bytes, encoded in UTF-8.

◆ notification

- (NSString*) notification
readwritenonatomicstrong

Topic notification The maximum length of the topic notification is 400 bytes, encoded in UTF-8.

◆ isAllMuted

- (BOOL) isAllMuted
readwritenonatomicassign

Whether to mute all members of this topic.

◆ selfMuteTime

- (uint32_t) selfMuteTime
readnonatomicassign

Current user's mute time in the topic.

◆ customString

- (NSString*) customString
readwritenonatomicstrong

Topic custom String.

◆ recvOpt

- (V2TIMReceiveMessageOpt) recvOpt
readnonatomicassign

Current user's message receiving option in the topic. To modify the topic message receiving option, please call the setGroupReceiveMessageOpt API.

◆ draftText

- (NSString*) draftText
readwritenonatomicstrong

Topic draft.

◆ unreadCount

- (uint64_t) unreadCount
readnonatomicassign

Current user's unread message count in the topic.

◆ lastMessage

- (V2TIMMessage*) lastMessage
readnonatomicstrong

Topic lastMessage.

◆ readSequence

- (uint64_t) readSequence
readnonatomicassign

Sequence of the latest message which has been read. supported only in 7.8 and later versions.

◆ groupAtInfolist

- (NSArray<V2TIMGroupAtInfo *>*) groupAtInfolist
readnonatomicstrong

Topic @ information list.

◆ createTime

- (uint32_t) createTime
readnonatomicassign

Topic create time.

◆ defaultPermissions

- (uint64_t) defaultPermissions
readwritenonatomicassign

Topic default permissions, supported only in 7.8 and later versions This API sets the default permissions for members who have not joined any permission groups. It takes effect only when permission groups are enabled (enablePermissionGroup in V2TIMGroupInfo is true).