ManagerType
public protocol ManagerType : AnyObject
Undocumented
-
Undocumented
Declaration
Swift
associatedtype Manager
-
Implementation of CBManager
Declaration
Swift
var manager: Manager { get }
-
Current state of
CentralManager
instance described byBluetoothState
which is equivalent to CBManagerState.Declaration
Swift
var state: BluetoothState { get }
-
Continuous state of
CBManager
instance described byBluetoothState
which is equivalent to CBManagerState.It’s infinite stream, so
.complete
is never called.Declaration
Swift
func observeState() -> Observable<BluetoothState>
Return Value
Observable that emits
next
event whenever state changes. -
Continuous state of
CBManager
instance described byBluetoothState
which is equivalent to CBManagerState.It’s infinite stream, so
.complete
is never called.Declaration
Swift
func observeStateWithInitialValue() -> Observable<BluetoothState>
Return Value
Observable that emits
next
event starting with current state and whenever state changes. -
ensure(_:
Extension methodobservable: ) Ensure that
state
is and will be the only state ofCentralManager
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.