RxCoreBluetooth
RxCoreBluetooth is a CoreBluetooth Extension for RxSwift
Usage
/// Bind CBManager State
centralManager.rx.state
.bind { state in
state == .powerOn
}.disposed(by: disposeBag)
/// Bind Discovered Peripheral
centralManager.rx
.didDiscover
.bind { discovered in
discovered
}
.disposed(by: disposeBag)
Requirements
- iOS 10.0 +
- Swift 3.0 +
- Xcode 8.0 +
Installation
RxCoreBluetooth is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'RxCoreBluetooth'
- For CBCentralManager Delegates
- For CBPeripheral Delegates
Author
Won, trilliwon@gmail.com
License
RxCoreBluetooth is available under the MIT license. See the LICENSE file for more info.