Instance Method

initWithUsername:service:

Returns a CNInstantMessageAddress object initialized with the specified user name and service.

Declaration

- (instancetype)initWithUsername:(NSString *)username service:(NSString *)service;

Parameters

username

The user name with which to initialize the CNInstantMessageAddress object.

service

The service with which to Initialize the CNInstantMessageAddress object.

Return Value

The initialized CNInstantMessageAddress object with the specified user name and service.

Discussion

User name and service are required to initialize CNInstantMessageAddress object.