Package org.robolectric.shadows
Class ShadowBluetoothLeAdvertiser
java.lang.Object
org.robolectric.shadows.ShadowBluetoothLeAdvertiser
@Implements(value=android.bluetooth.le.BluetoothLeAdvertiser.class,
minSdk=26)
public class ShadowBluetoothLeAdvertiser
extends Object
Shadow implementation of
BluetoothLeAdvertiser
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.robolectric.shadows.ShadowBluetoothLeAdvertiser.BluetoothLeAdvertiserReflector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the count of current ongoing Bluetooth LE advertising requests.int
Returns the count of current ongoing Bluetooth LE advertising set requests.protected void
startAdvertising
(AdvertiseSettings settings, AdvertiseData advertiseData, AdvertiseCallback callback) protected void
startAdvertisingSet
(AdvertisingSetParameters parameters, AdvertiseData advertiseData, AdvertiseData scanResponse, PeriodicAdvertisingParameters periodicParameters, AdvertiseData periodicData, AdvertisingSetCallback callback)
-
Field Details
-
bluetoothLeAdvertiserReflector
@ReflectorObject protected org.robolectric.shadows.ShadowBluetoothLeAdvertiser.BluetoothLeAdvertiserReflector bluetoothLeAdvertiserReflector
-
-
Constructor Details
-
ShadowBluetoothLeAdvertiser
public ShadowBluetoothLeAdvertiser()
-
-
Method Details
-
getAdvertisementRequestCount
public int getAdvertisementRequestCount()Returns the count of current ongoing Bluetooth LE advertising requests. -
getAdvertisingSetRequestCount
public int getAdvertisingSetRequestCount()Returns the count of current ongoing Bluetooth LE advertising set requests. -
startAdvertising
@Implementation protected void startAdvertising(AdvertiseSettings settings, AdvertiseData advertiseData, AdvertiseCallback callback) -
startAdvertisingSet
@Implementation protected void startAdvertisingSet(AdvertisingSetParameters parameters, AdvertiseData advertiseData, AdvertiseData scanResponse, PeriodicAdvertisingParameters periodicParameters, AdvertiseData periodicData, AdvertisingSetCallback callback) -
getLastAdvertisingData
-