FocusDelegate

public protocol FocusDelegate : AnyObject

An delegate that appllication can extend to register to observe focus changes.

  • Determines whether the AVAudioSession should be activates.

    This mehthod called When the FocusManager receives a requestFocus:channelDelegate:

    Declaration

    Swift

    func focusShouldAcquire() -> Bool
  • Determines whether the AVAudioSession should be deactivates.

    Declaration

    Swift

    func focusShouldRelease()