StartAdvertisingResult
public enum StartAdvertisingResult
Enum result that is returned as a result of PeripheralManager.startAdvertising method
-
Advertising started properly with specified
advertisementDataDeclaration
Swift
case started -
This is a special case meaning that there is already ongoing advertising that has been started outside of
RxBluetoothKitlibrary andPeripherlManager.startAdvertisingdid 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 receiveRestoredAdvertisementDataparam, so you can know with whatadvertisementDatait was started before app went background. WARNING: remember that this is not really callingCBPeripheralManager.startAdvertisingso it might be not started withadvertisementDataparam that you’ve provided. If you want to start with differentadvertisementDatathen you will need to dispose advertising observable and callstartAdvertisingagain.Declaration
Swift
case attachedToExternalAdvertising(RestoredAdvertisementData?)
View on GitHub
StartAdvertisingResult Enumeration Reference