VIConversationConfig
Configuration either to create a new conversation or restore a previously created conversation:
Props
customData
@property (copy, nonatomic) NSDictionary<NSString *, NSObject *> *
customData
Custom data of the conversation (up to 5kb).
The custom data can be later changed via [VIConversation customData].
Returns
type:
NSDictionary<NSString *, NSObject *> *
direct
@property (assign, nonatomic, getter = isDirect) BOOL
direct
Whether the conversation is direct.
There can be only 2 participants in a direct conversation which is unique and the only one for these participants. There cannot be more than 1 direct conversation for the same 2 users.
If one of these users tries to create a new direct conversation with the same participant via [VIMessenger createConversation:completion:], the method returns the UUID of the already existing direct conversation.
A direct conversation cannot be uber and/or public.
Returns
type:
BOOL
participants
@property (copy, nonatomic) NSArray<VIConversationParticipant *> *
participants
Conversation's participants.
The participants array can be later changed via:
Returns
type:
NSArray<VIConversationParticipant *> *
publicJoin
@property (assign, nonatomic, getter = isPublicJoin) BOOL
publicJoin
Whether the conversation is public.
It can be later changed via [VIConversation publicJoin].
If true, any user can join the conversation via [VIMessenger joinConversation:completion:] by specifying its UUID. Use the [VIMessenger getPublicConversations:] method to retrieve all public conversations' UUIDs.
A public conversation cannot be direct.
Returns
type:
BOOL
title
@property (copy, nullable, nonatomic) NSString *
title
Conversation's title.
It can be later changed via [VIConversation title].
Returns
type:
NSString *
uber
@property (assign, nonatomic, getter = isUber) BOOL
uber
Whether the conversation is uber.
Users in a uber conversation cannot retrieve messages that have been posted to the conversation after they quit.
A uber conversation cannot be direct.
Returns
type:
BOOL