Instance Method

authorizationViewReleasedAuthorization(_:)

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

Declaration

func authorizationViewReleasedAuthorization(_ view: SFAuthorizationView!)

Discussion

This method is called after deauthorization has been approved (either you called the deauthorize: method, or the user clicked an open lock icon and the authorizationViewShouldDeauthorize(_:) delegate method did not cancel the operation), and before the user is deauthorized (that is, before the authorizationViewDidDeauthorize(_:) delegate method is called).

See Also

Delegate methods

func authorizationViewShouldDeauthorize(SFAuthorizationView!) -> Int8

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

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.