1. Invite Users
You can invite members to the channel even if you are not the owner.
Copy TPChannel? channel = await TalkPlusAPI.addMemberToChannel(
tpChannel,
targetIds,
errorCallback: (errorCode, errorMessage){}
);
2. Remove Members
Copy TPChannel? channel = await TalkPlusAPI.removeMemberToChannel(
tpChannel,
targetIds,
errorCallback: (errorCode, errorMessage){}
);
3. Get Channel Member List
Copy await TalkPlusAPI.getChannelMembers(tpChannel, lastUser, (tpMembers, hasNext) {
if(hasNext) {
TPMember last = tpMembers.last;
...
}
}, errorCallback: (errorCode, errorMessage){
}
);
4. Ban Users
Copy TPChannel? channel = await TalkPlusAPI.banMemberToChannel(
tpChannel,
targetIds,
errorCallback: (errorCode, errorMessage){}
);
5. Unban Users
Copy TPChannel? channel = await TalkPlusAPI.unBanMemberToChannel(
tpChannel,
targetIds,
errorCallback: (errorCode, errorMessage){}
);
6. Mute Members
Mute feature allows the channel owner to mute specific members in the channel. Muted members are not allowed to send messages.
Copy TPChannel? channel = await TalkPlusAPI.muteMemberToChannel(
tpChannel,
targetIds,
expireInMinutes,
errorCallback: (errorCode, errorMessage){}
);
7. Unmute Members
Copy TPChannel? channel = await TalkPlusAPI.unMuteMemberToChannel(
tpChannel,
targetIds,
errorCallback: (errorCode, errorMessage){}
);
8. Peer Mute
You can mute another member in the channel.
Copy await TalkPlusAPI.mutePeerToChannel(tpChannel,
targetIds,
expireInMinutes,
(tpChannel, mutedMembers) {
},
errorCallback: (errorCode, errorMessage){
}
);
9. Peer Unmute
Copy await TalkPlusAPI.unMutePeerToChannel(tpChannel,
targetIds,
(tpChannel, unMutedMembers) {
...
},
errorCallback: (errorCode, errorMessage){
}
);
10. Get Peer Muted List
Copy await TalkPlusAPI.getMutedPeers(lastChannel, lastMember, (tpMembers, hasNext){
...
if(hasNext) {
TPMember last = tpMembers.last;
...
}
...
}, errorCallback: (errorCode, errorMessage){
});
Last updated 10 months ago