ManagerType

public protocol ManagerType : AnyObject

Undocumented

  • ensure(_:observable:) Extension method

    Ensure that state is and will be the only state of CentralManager during subscription. Otherwise error is emitted.

    Declaration

    Swift

    func ensure<T>(_ state: BluetoothState, observable: Observable<T>) -> Observable<T>

    Parameters

    state

    BluetoothState which should be present during subscription.

    observable

    Observable into which potential errors should be merged.

    Return Value

    New observable which merges errors with source observable.