StartOptions

public struct StartOptions

Wrapper for CBCentralManager initialization configurations when starting a new Bluejay instance.

  • Configurations for starting Bluejay.

    Declaration

    Swift

    public init(enableBluetoothAlert: Bool, backgroundRestore: BackgroundRestoreMode)

    Parameters

    enableBluetoothAlert

    whether to show an iOS system alert when Bluetooth is turned off while the app is still running in the background.

    backgroundRestore

    enable or disable state restoration.

  • Convenience factory method to avoid having to use the public initializer.

    Declaration

    Swift

    public static var `default`: StartOptions { get }