TCHUserInfo Class Reference

Inherits from NSObject
Declared in TCHUserInfo.h

Overview

User information for the current user and other channel members.

  identity

The identity for this user.

@property (nonatomic, copy, readonly) NSString *identity

Discussion

The identity for this user.

Declared In

TCHUserInfo.h

  friendlyName

The friendly name for this user.

@property (nonatomic, copy, readonly) NSString *friendlyName

Discussion

The friendly name for this user.

Declared In

TCHUserInfo.h

– attributes

Return this user’s attributes.

- (NSDictionary<NSString*,id> *)attributes

Return Value

The developer-defined extensible attributes for this user.

Discussion

Return this user’s attributes.

Declared In

TCHUserInfo.h

– setAttributes:completion:

Set this user’s attributes.

- (void)setAttributes:(NSDictionary<NSString*,id> *)attributes completion:(TCHCompletion)completion

Parameters

attributes

The new developer-defined extensible attributes for this user. (Supported types are NSString, NSNumber, NSArray, NSDictionary and NSNull)

completion

Completion block that will specify the result of the operation.

Discussion

Set this user’s attributes.

Declared In

TCHUserInfo.h

– setFriendlyName:completion:

Set this user’s friendly name.

- (void)setFriendlyName:(NSString *)friendlyName completion:(TCHCompletion)completion

Parameters

friendlyName

The new friendly name for this user.

completion

Completion block that will specify the result of the operation.

Discussion

Set this user’s friendly name.

Declared In

TCHUserInfo.h

– isOnline

Indicates whether the user is online. Note that if TwilioChatClient indicates reachability is not enabled, this will return NO.

- (BOOL)isOnline

Return Value

YES if the user is online.

Discussion

Indicates whether the user is online. Note that if TwilioChatClient indicates reachability is not enabled, this will return NO.

Declared In

TCHUserInfo.h

– isNotifiable

Indicates whether the user is notifiable. Note that if TwilioChatClient indicates reachability is not enabled, this will return NO.

- (BOOL)isNotifiable

Return Value

YES if the user is notifiable.

Discussion

Indicates whether the user is notifiable. Note that if TwilioChatClient indicates reachability is not enabled, this will return NO.

Declared In

TCHUserInfo.h