Contents

requestAutoSignInAuthorizationWithCompletionHandler:

Presents a modal sheet that offers a person to opt in to Automatic Sign-In.

Declaration

- (void) requestAutoSignInAuthorizationWithCompletionHandler:(void (^)(VSAutoSignInTokenUpdateContext *updateContext, NSError *error)) completion;

Discussion

Call this method after a successful sign in to your service. You might also call this method through custom UI that your app implements to offer Automatic Sign-In.

If the person approves the prompt, the framework sets the authorization status to VSUserAccountManager.AutoSignInAuthorization.granted. If the person dismisses the prompt without approving, the system leaves the authorization status VSUserAccountManager.AutoSignInAuthorization.notDetermined and the framework doesn’t prompt them again until the app calls requestAutoSignInAuthorization() once more.

For more information, see Signing people in to their media accounts automatically.

See Also

Signing people in automatically