revokeAuthorization(completionHandler:)
Revokes authorization to provide parental controls.
Declaration
func revokeAuthorization(completionHandler: @escaping (Result<Void, any Error>) -> Void)Parameters
- completionHandler:
A closure the system calls after it completes the authorization request. The system passes the following parameters:
resultA value that represents either a success or a failure, including an associated Error object for failures.
Discussion
If your app’s authentication status is AuthorizationStatus.approved this method revokes authentication.
The completion handler’s Result parameter indicates whether the request completed successfully. It doesn’t indicate your app’s authorization state.
After you revoke authorization, your app no longer provides parental controls, and the system no longer enforces restrictions, such as preventing the user from deleting your app.