Instance Method

authorizationViewShouldDeauthorize(_:)

Sent to the delegate when a user clicks the open lock icon.

Declaration

func authorizationViewShouldDeauthorize(_ view: SFAuthorizationView!) -> Int8

Discussion

The delegate can react to this before deauthorization happens and avoid it by returning false. This delegate method is not called when you call the deauthorize: method.

See Also

Delegate methods

func authorizationViewCreatedAuthorization(SFAuthorizationView!)

Sent to the delegate to indicate the authorization object has been created or changed. If you have saved a copy of the authorization object for your own purposes, you should discard it and call authorization for a new authorization object.

func authorizationViewDidAuthorize(SFAuthorizationView!)

Sent to the delegate to indicate the user was authorized and the authorization view was changed to unlocked.

func authorizationViewDidDeauthorize(SFAuthorizationView!)

Sent to the delegate to indicate the user was deauthorized and the authorization view was changed to locked.

func authorizationViewDidHide(SFAuthorizationView!)

Sent to the delegate to indicate that the view’s visibility has changed.

func authorizationViewReleasedAuthorization(SFAuthorizationView!)

Sent to the delegate to indicate that deauthorization is about to occur.