Share via


LiveAuthDelegate authCompleted:session:userState method

Handles callback methods for LiveConnectClient init, login, and logout methods.

Signature

- (void) authCompleted:(LiveConnectSessionStatus) status
               session:(LiveConnectSession *) session
             userState:(id) userState

Parameters

Name

Datatype

Description

status

LiveConnectSessionStatus

A LiveConnectSessionStatus value that indicates the user current session status.

If the Library detects that the user has already consented to the app for the required scopes, the status is "LiveAuthConnected". Otherwise, "LiveAuthNotConnected" or "LiveAuthUnknown" are returned.

session

LiveConnectSession

The current user session (LiveConnectSession) instance will be received, if the user is known by the library as connected (LiveAuthConnected). If the user status is not known as connected (LiveAuthConnected), nil value will be received.

userState

id

An object passed in by the caller to track asynchronous calling context.

Returns

Nothing.

Defined in

LiveAuthDelegate.h

See also

LiveAuthDelegate protocol