You can view all public channels even if you are a not member.
The list is paginated, so to get to the next page, you can pass the last TPChannel from the previous list to get to the next page.
[[TalkPlus sharedInstance] getPublicChannels:lastChannel
success:^(NSArray<TPChannel *> *tpChannels, BOOL hasNext) {
// SUCCESS
// If 'hasNext' is YES, call this method with the last object in 'tpChannels'.
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
TalkPlus.sharedInstance()?.getPublicChannels(lastChannel,
success: { tpChannels, hasNext in
// SUCCESS
// If 'hasNext' is true, call this method with the last object in 'tpChannels'.
}, failure: { (errorCode, error) in
// FAILURE
})
2. Get Joined Channels
View currently joined channels.
The list is paginated, so to get to the next page, you can pass the last TPChannel from the previous list to get to the next page.
[[TalkPlus sharedInstance] getChannels:lastChannel
success:^(NSArray<TPChannel *> *tpChannels, BOOL hasNext) {
// SUCCESS
// If 'hasNext' is YES, call this method with the last object in 'tpChannels'.
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
TalkPlus.sharedInstance()?.getChannels(lastChannel,
success: { tpChannels, hasNext in
// SUCCESS
// If 'hasNext' is true, call this method with the last object in 'tpChannels'.
}, failure: { (errorCode, error) in
// FAILURE
})
3. Get Hidden Channels
View currently joined channels that have been marked as hidden.
The list is paginated, so to get to the next page, you can pass the last TPChannel from the previous list to get to the next page.
[[TalkPlus sharedInstance] getHiddenChannels:lastChannel
success:^(NSArray<TPChannel *> *tpChannels, BOOL hasNext) {
// SUCCESS
// If 'hasNext' is YES, call this method with the last object in 'tpChannels'.
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
TalkPlus.sharedInstance()?.getHiddenChannels(lastChannel,
success: { tpChannels, hasNext in
// SUCCESS
// If 'hasNext' is true, call this method with the last object in 'tpChannels'.
}, failure: { (errorCode, error) in
// FAILURE
})code
4. Get Total Unread Message Count
Get the total number of unread messages from all joined channels.