Type Alias

PermissionBlock

The signature for the block executed when the user responds to a system prompt for recording permission.

Declaration

typealias PermissionBlock = (Bool) -> Void

Discussion

The block takes a single parameter:

granted

true if the user has explicitly granted the app permission for audio recording; false if the user denied permission.

This block type is used by the requestRecordPermission(_:) method.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software