TWMChannel Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | TWMChannel.h |
delegate
Optional channel delegate
@property (nonatomic, weak) id<TWMChannelDelegate> delegateDiscussion
Optional channel delegate
Declared In
TWMChannel.h
sid
The unique identifier for this channel.
@property (nonatomic, copy, readonly) NSString *sidDiscussion
The unique identifier for this channel.
Declared In
TWMChannel.h
friendlyName
The friendly name for this channel.
@property (nonatomic, copy, readonly) NSString *friendlyNameDiscussion
The friendly name for this channel.
Declared In
TWMChannel.h
uniqueName
The unique name for this channel.
@property (nonatomic, copy, readonly) NSString *uniqueNameDiscussion
The unique name for this channel.
Declared In
TWMChannel.h
messages
The messages list object for this channel.
@property (nonatomic, strong, readonly) TWMMessages *messagesDiscussion
The messages list object for this channel.
Declared In
TWMChannel.h
members
The members list object for this channel.
@property (nonatomic, strong, readonly) TWMMembers *membersDiscussion
The members list object for this channel.
Declared In
TWMChannel.h
status
The current user’s status on this channel.
@property (nonatomic, assign, readonly) TWMChannelStatus statusDiscussion
The current user’s status on this channel.
Declared In
TWMChannel.h
type
The channel’s visibility type.
@property (nonatomic, assign, readonly) TWMChannelType typeDiscussion
The channel’s visibility type.
Declared In
TWMChannel.h
dateCreated
The timestamp the channel was created.
@property (nonatomic, strong, readonly) NSString *dateCreatedDiscussion
The timestamp the channel was created.
Declared In
TWMChannel.h
dateCreatedAsDate
The timestamp the channel was created as an NSDate.
@property (nonatomic, strong, readonly) NSDate *dateCreatedAsDateDiscussion
The timestamp the channel was created as an NSDate.
Declared In
TWMChannel.h
dateUpdated
The timestamp the channel was last updated.
@property (nonatomic, strong, readonly) NSString *dateUpdatedDiscussion
The timestamp the channel was last updated.
Declared In
TWMChannel.h
dateUpdatedAsDate
The timestamp the channel was last updated as an NSDate.
@property (nonatomic, strong, readonly) NSDate *dateUpdatedAsDateDiscussion
The timestamp the channel was last updated as an NSDate.
Declared In
TWMChannel.h
– synchronizeWithCompletion:
Perform the initial synchronization for channel.
- (void)synchronizeWithCompletion:(TWMCompletion)completionParameters
completion |
Completion block that will specify the result of the operation. |
|---|
Discussion
Perform the initial synchronization for channel.
Declared In
TWMChannel.h
– attributes
Return this channel’s attributes.
- (NSDictionary<NSString*,id> *)attributesReturn Value
The developer-defined extensible attributes for this channel.
Discussion
Return this channel’s attributes.
Declared In
TWMChannel.h
– setAttributes:completion:
Set this channel’s attributes.
- (void)setAttributes:(NSDictionary<NSString*,id> *)attributes completion:(TWMCompletion)completionParameters
attributes |
The new developer-defined extensible attributes for this channel. (Supported types are NSString, NSNumber, NSArray, NSDictionary and NSNull) |
|---|---|
completion |
Completion block that will specify the result of the operation. |
Discussion
Set this channel’s attributes.
Declared In
TWMChannel.h
– setFriendlyName:completion:
Set this channel’s friendly name.
- (void)setFriendlyName:(NSString *)friendlyName completion:(TWMCompletion)completionParameters
friendlyName |
The new friendly name for this channel. |
|---|---|
completion |
Completion block that will specify the result of the operation. |
Discussion
Set this channel’s friendly name.
Declared In
TWMChannel.h
– setUniqueName:completion:
Set this channel’s unique name.
- (void)setUniqueName:(NSString *)uniqueName completion:(TWMCompletion)completionParameters
uniqueName |
The new unique name for this channel. |
|---|---|
completion |
Completion block that will specify the result of the operation. |
Discussion
Set this channel’s unique name.
Declared In
TWMChannel.h
– joinWithCompletion:
Join the current user to this channel.
- (void)joinWithCompletion:(TWMCompletion)completionParameters
completion |
Completion block that will specify the result of the operation. |
|---|
Discussion
Join the current user to this channel.
Declared In
TWMChannel.h
– declineInvitationWithCompletion:
Decline an invitation to this channel.
- (void)declineInvitationWithCompletion:(TWMCompletion)completionParameters
completion |
Completion block that will specify the result of the operation. |
|---|
Discussion
Decline an invitation to this channel.
Declared In
TWMChannel.h
– leaveWithCompletion:
Leave the current channel.
- (void)leaveWithCompletion:(TWMCompletion)completionParameters
completion |
Completion block that will specify the result of the operation. |
|---|
Discussion
Leave the current channel.
Declared In
TWMChannel.h
– typing
Indicates to other users and the backend that the user is typing a message to this channel.
- (void)typingDiscussion
Indicates to other users and the backend that the user is typing a message to this channel.
Declared In
TWMChannel.h
– memberWithIdentity:
Fetch the member object for the given identity if it exists.
- (TWMMember *)memberWithIdentity:(NSString *)identityParameters
identity |
The username to fetch. |
|---|
Return Value
The TWMMember object, if one exists for the username for this channel.
Discussion
Fetch the member object for the given identity if it exists.
Declared In
TWMChannel.h