Updating Channel
Only the channel owner can update channel.
You can enter up to 5 key-value pairs in data field. The maximum size of key is 128 characters and the maximum size of value is 1024 characters. Both key and value must be strings.
[[TalkPlus sharedInstance] updateChannel:channel
maxMemberCount:maxMemberCount
hideMessagesBeforeJoin:hideMessagesBeforeJoin
channelName:channelName
invitationCode:invitationCode
category:category
subcategory:subcategory
imageUrl:imageUrl
metaData:metaData
success:^(TPChannel *tpChannel) {
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
TalkPlus.sharedInstance()?.update(channel,
maxMemberCount: maxMemberCount,
hideMessagesBeforeJoin: hideMessagesBeforeJoin,
channelName: channelName,
invitationCode: invitationCode,
category: category,
subcategory: subcategory,
imageUrl: imageUrl,
metaData: metaData,
success: { tpChannel in
// SUCCESS
}, failure: { (errorCode, error) in
// FAILURE
})
Last updated