Classes

The following classes are available globally.

  • Top-level interface to the BoseWearable library. Note that you must call BoseWearable.configure(_:) before using the BoseWearableLib.shared singleton instance. Failing to do so results in a fatal error.

    See more

    Declaration

    Swift

    public class BoseWearableLib
  • Encapsulates the device search and connection functionality. It requires a ConnectUI implementation that gets called to show and update the user interface throughout the search, connect, and secure pairing process.

    See more

    Declaration

    Swift

    public class ConnectionTask<ConnectUIImpl> : AnyConnectionTask where ConnectUIImpl : ConnectUI
  • The DeviceSearchTask class encapsulates the device search functionality. It requires a DeviceSearchUserInterface object that gets called to show and update the device picker which allows users to select a discovered device. The DeviceSearchUserInterface calls back into the DeviceSearchTask via the DeviceSearchUserInterfaceDelegate protocol.

    See more

    Declaration

    Swift

    @available(*, deprecated, message: "DeviceSearchTask has been replaced by ConnectionTask.")
    public class DeviceSearchTask
  • An opaque token used to add and remove listeners backed by NotificationCenter. A ListenerToken object retains the token returned by NotificationCenter.addObserver(for:object:queue:) as well as the NotificationCenter. When the object is deallocated, we automatically remove the observer from the retained NotificationCenter using the retained token.

    Declaration

    Swift

    public class ListenerToken