Type Aliases

The following type aliases are available globally.

  • An alias to make it clearer that the string should be some kind of identifier for restoration, and not just any arbitrary string.

    Note

    Please provide a unique restore identifier for CoreBluetooth. See Apple documentation for more details.

    Declaration

    Swift

    public typealias RestoreIdentifier = String
  • An alias to make it clearer that the dictionary should be the launch options from UIApplicationDelegate.

    Declaration

    Swift

    public typealias LaunchOptions = [UIApplication.LaunchOptionsKey : Any]?
  • Gives name to a specific callback type used for listens.

    Declaration

    Swift

    public typealias ListenCallback = (ReadResult<Data?>) -> Void