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 boolean
isAdvertising()
boolean
isInit()
void
onStartFailure(int errorCode)
void
onStartSuccess(android.bluetooth.le.AdvertiseSettings settingsInEffect)
void
setAdvertisingState(boolean state)
boolean
start(java.lang.String id)
void
stop()
-
-
-
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:
onStartFailure
in classandroid.bluetooth.le.AdvertiseCallback
-
onStartSuccess
public void onStartSuccess(android.bluetooth.le.AdvertiseSettings settingsInEffect)
- Overrides:
onStartSuccess
in classandroid.bluetooth.le.AdvertiseCallback
-
-