BLE peripheral mode (4/4): Settings change for advertising preference.
Change-Id: I5721f136267fe25e55f764bb4a6c53acd45b318b
This commit is contained in:
@@ -118,6 +118,9 @@ public final class LocalBluetoothAdapter {
|
||||
return mAdapter.isDiscovering();
|
||||
}
|
||||
|
||||
boolean isAdvertising() {
|
||||
return mAdapter.isAdvertising();
|
||||
}
|
||||
boolean isEnabled() {
|
||||
return mAdapter.isEnabled();
|
||||
}
|
||||
@@ -126,6 +129,14 @@ public final class LocalBluetoothAdapter {
|
||||
mAdapter.setDiscoverableTimeout(timeout);
|
||||
}
|
||||
|
||||
boolean startAdvertising() {
|
||||
return mAdapter.startAdvertising();
|
||||
}
|
||||
|
||||
boolean stopAdvertising() {
|
||||
return mAdapter.stopAdvertisting();
|
||||
}
|
||||
|
||||
void setName(String name) {
|
||||
mAdapter.setName(name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user