DisconnectionResult

public enum DisconnectionResult

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

  • The disconnection is successful, and the disconnected peripheral is captured in the associated value.

    Declaration

    Swift

    case success(CBPeripheral)
  • The disconnection is cancelled for a reason.

    Declaration

    Swift

    case cancelled
  • The disconnection has failed unexpectedly with an error.

    Declaration

    Swift

    case failure(Error)