FocusDelegate
public protocol FocusDelegate : AnyObject
An delegate that appllication can extend to register to observe focus changes.
-
Determines whether the
AVAudioSessionshould be activates.This mehthod called When the
FocusManagerreceives arequestFocus:channelDelegate:Declaration
Swift
func focusShouldAcquire() -> Bool -
Determines whether the
AVAudioSessionshould be deactivates.Declaration
Swift
func focusShouldRelease()
View on GitHub
FocusDelegate Protocol Reference