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.