채널 참여 / 나가기
1. 채널에 참여하기
채널에 참여합니다.
[[TalkPlus sharedInstance] joinChannel:channelId
success:^(TPChannel *tpChannel) {
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
2. InvitationOnly 채널에 참여하기
초대 전용 채널에 참여합니다.
[[TalkPlus sharedInstance] joinChannel:channelId
invitationCode:invitationCode
success:^(TPChannel *tpChannel) {
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
3. 채널 나가기
채널에서 나갑니다.
[[TalkPlus sharedInstance] leaveChannel:channel
deleteChannelIfEmpty:YES
success:^{
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
Last updated