RxFitbitGatt / com.fitbit.bluetooth.fbgatt.rx.advertiser / Advertiser

Advertiser

class Advertiser

Utility class wrapping framework gattServer and rxGattServerCallback

Constructors

<init>

Advertiser(context: Context, bleAdvertiser: BluetoothLeAdvertiser = BluetoothAdapter.getDefaultAdapter().bluetoothLeAdvertiser)

Utility class wrapping framework gattServer and rxGattServerCallback

Properties

context

val context: Context

Functions

startAdvertising

fun startAdvertising(advertiseSettings: AdvertiseSettings, advertiseData: AdvertiseData, scanResponse: AdvertiseData? = null): Completable

stopAdvertising

fun stopAdvertising(): Completable

Companion Object Functions

getAdvertiseData

fun getAdvertiseData(uuid: String): AdvertiseData

getAdvertiseSettings

fun getAdvertiseSettings(): AdvertiseSettings

getScanResponseData

fun getScanResponseData(): AdvertiseData