AuthorizationAsyncCallback
A block used as a callback for the asynchronous version of copying authorization rights.
Declaration
typealias AuthorizationAsyncCallback = (OSStatus, UnsafeMutablePointer<AuthorizationRights>?) -> VoidParameters
- err:
A result code. See Authorization Services Result Codes. This is equivalent to the return value from the Authorizationcopyrights(_:_:_:_:_:) function.
- blockAuthorizedRights:
The authorized rights. This is equivalent to the authorizedRights parameter of the Authorizationcopyrights(_:_:_:_:_:) function. Free this object using the Authorizationfreeitemset(_:) function when you are done with it.
Discussion
Use a block of this type as the callback parameter to the AuthorizationCopyRightsAsync(_:_:_:_:_:) function.