LiveConnectClient initWithClientId:delegate method
Performs an asynchronous initialize of a new instance of the LiveConnectClient class with a client ID, and optionally, a LiveAuthDelegate.
Signature
- (id) initWithClientId:(NSString *)clientId
delegate:(id<LiveAuthDelegate>)delegate;
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. |
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.