Enumerations

The following enumerations are available globally.

  • Determines how Bluejay should opt-in to CoreBluetooth state restoration.

    See more

    Declaration

    Swift

    public enum BackgroundRestoreMode
  • Allows capturing further Bluejay operations to be queued and executed after background restoration is completed.

    See more

    Declaration

    Swift

    public enum BackgroundRestoreCompletion
  • Types of connection time outs. Can specify a time out in seconds, or no time out.

    See more

    Declaration

    Swift

    public enum Timeout
  • Indicates a successful, cancelled, or failed connection attempt, where the success case contains the peripheral connected to.

    See more

    Declaration

    Swift

    public enum ConnectionResult
  • Indicates a successful, cancelled, or failed disconnection attempt, where the success case contains the peripheral disconnected from.

    See more

    Declaration

    Swift

    public enum DisconnectionResult
  • Indicates whether the current listen on a characteristic should continue or end.

    See more

    Declaration

    Swift

    public enum ListenAction
  • Available actions to take on an unhandled listen event from background restoration.

    See more

    Declaration

    Swift

    public enum ListenRestoreAction
  • Ways to handle calling listen on the same characteristic multiple times.

    See more

    Declaration

    Swift

    public enum MultipleListenOption : Int
  • Indicates a successful, cancelled, or failed read attempt, where the success case contains the value read.

    See more

    Declaration

    Swift

    public enum ReadResult<R>
  • Indicates a successful, cancelled, or failed run(backgroundTask:completionOnMainThread:) attempt, where the success case contains the value returned at the end of the background task.

    See more

    Declaration

    Swift

    public enum RunResult<R>
  • Indicates whether a scan should continue, continue but blacklist the current discovery, stop, or stop and connect.

    See more

    Declaration

    Swift

    public enum ScanAction
  • Specifies whether to start a new Bluejay instance from scratch, or from an existing CoreBluetooth session.

    See more

    Declaration

    Swift

    public enum StartMode
  • Indicates a successful, cancelled, or failed write attempt.

    See more

    Declaration

    Swift

    public enum WriteResult