StartAdvertisingResult
public enum StartAdvertisingResult
Enum result that is returned as a result of PeripheralManager.startAdvertising
method
-
Advertising started properly with specified
advertisementData
Declaration
Swift
case started
-
This is a special case meaning that there is already ongoing advertising that has been started outside of
RxBluetoothKit
library andPeripherlManager.startAdvertising
did only attached to ongoing advertising without callingCBPeripheralManager.startAdvertising
. The reason behind that is that we want to give user possibility to stop advertising in such state. In most cases it happens when app went from background with ongoing advertising - in that case you will receiveRestoredAdvertisementData
param, so you can know with whatadvertisementData
it was started before app went background. WARNING: remember that this is not really callingCBPeripheralManager.startAdvertising
so it might be not started withadvertisementData
param that you’ve provided. If you want to start with differentadvertisementData
then you will need to dispose advertising observable and callstartAdvertising
again.Declaration
Swift
case attachedToExternalAdvertising(RestoredAdvertisementData?)