LiveConnectClient initWithClientId:delegate:userState method
Performs an asynchronous initialize of a new instance of the LiveConnectClient class with a client ID, and optionally, a LiveAuthDelegate and user state.
Signature
- (id) initWithClientId:(NSString *)clientId
delegate:(id<LiveAuthDelegate>)delegate
userState:(id)userState;
Parameters
Name |
Datatype |
Description |
---|---|---|
clientId |
NSString |
Required. The client ID value of the app when registered on the Live SDK app management site. |
delegate |
id<LiveAuthDelegate> |
Optional. An app class instance that implements the LiveAuthDelegate protocol. |
userState |
id |
Optional. An object that is used to track the asynchronous state. The userState object is found in the userState property of the LiveOperation instance that is passed as a parameter when a LiveOperationDelegate protocol method is invoked. Optional. An app class instance that implements the LiveAuthDelegate protocol. |
Returns
Nothing.
Defined in
LiveConnectClient.h
Remarks
An instance of the LiveConnectClient class must be initialized before other methods can be invoked. Invoking any methods other than init* on an uninitialized instance results in an exception. If an init* method is used on an instance of the LiveConnectClient class that is already initialized, it is silently ignored.
The initialization process retrieves the user authentication session using a refresh token that persisted in the device, if available.