AudioFocus

  • A FocusManager takes requests to acquire and release Channels and updates the focuses of other Channels based on their priorities so that the invariant that there can only be one Foreground Channel is held.

    See more

    Declaration

    Swift

    public protocol FocusManageable : AnyObject
  • An delegate that appllication can extend to register to observe focus changes.

    See more

    Declaration

    Swift

    public protocol FocusDelegate : AnyObject
  • FocusChannelDelegate may be capability agent whose needs to be registered with the ContextManager.

    See more

    Declaration

    Swift

    public protocol FocusChannelDelegate : AnyObject
  • The priority of the channel used by the FocusManager to create Channel objects.

    Use a initializer if you want to create priorities directly in application. The predetermined focus channel includes recognition(priority = 300), information(priority = 200) and content(priority = 100).

    See more

    Declaration

    Swift

    public struct FocusChannelPriority
  • An enum class used to specify the levels of focus that a Channel can have.

    See more

    Declaration

    Swift

    public enum FocusState