Package ipfs.gomobile.android.bledriver
Class Advertiser
- java.lang.Object
-
- android.bluetooth.le.AdvertiseCallback
-
- ipfs.gomobile.android.bledriver.Advertiser
-
public class Advertiser extends android.bluetooth.le.AdvertiseCallback
-
-
Constructor Summary
Constructors Constructor Description Advertiser(Logger logger, android.bluetooth.BluetoothAdapter bluetoothAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAdvertising()booleanisInit()voidonStartFailure(int errorCode)voidonStartSuccess(android.bluetooth.le.AdvertiseSettings settingsInEffect)voidsetAdvertisingState(boolean state)booleanstart(java.lang.String id)voidstop()
-
-
-
Constructor Detail
-
Advertiser
public Advertiser(Logger logger, android.bluetooth.BluetoothAdapter bluetoothAdapter)
-
-
Method Detail
-
isInit
public boolean isInit()
-
start
public boolean start(java.lang.String id)
-
stop
public void stop()
-
setAdvertisingState
public void setAdvertisingState(boolean state)
-
isAdvertising
public boolean isAdvertising()
-
onStartFailure
public void onStartFailure(int errorCode)
- Overrides:
onStartFailurein classandroid.bluetooth.le.AdvertiseCallback
-
onStartSuccess
public void onStartSuccess(android.bluetooth.le.AdvertiseSettings settingsInEffect)
- Overrides:
onStartSuccessin classandroid.bluetooth.le.AdvertiseCallback
-
-