BoseGesture

public class BoseGesture

Top-level interface to the BoseGesture library. Note that you must call BoseGesture.configure(withKey:) with a valid API key before using the BoseGesture.shared singleton instance.

  • The gesture recognizer. This object is in charge of predicting gestures usin sensor data as input.

    Declaration

    Swift

    public let recognizer: BoseGestureRecognizer

Static interface

  • Configures the BoseGesture library. Note this function can only be called once. Subsequent calls will result in a fatal error.

    Declaration

    Swift

    public static func configure()

    Parameters

    analyticsOn

    Boolean flag determining whether to turn Bose analytics tracking on. Disabled by default. Enabling analytics helps developers improve their apps by allowing Bose to share data and usage statistics about your apps.

  • The shared singleton BoseGesture instance. Note that the BoseGesture.configure(withKey:) method must be called first in order to use the BoseGesture.shared instance.

    Declaration

    Swift

    public static var shared: BoseGesture { get }
  • The release version of the BoseGesture framework. This corresponds to the CFBundleShortVersionString key in the framework’s Info.plist.

    Declaration

    Swift

    public static var releaseVersion: String? { get }
  • The build number of the BoseGesture framework. This corresponds to the CFBundleVersion key in the framework’s Info.plist.

    Declaration

    Swift

    public static var buildNumber: String? { get }
  • The formatted version of the BoseGesture framework, combining the release version and build number.

    Declaration

    Swift

    public static var formattedVersion: String { get }