Indicates whether the application requires the CompanionDeviceManager service to
collect an explicit confirmation from the user before creating an association, even if
such confirmation is not required from the service's perspective.
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
Adds a display name.
Generally AssociationRequests are not required to provide a display name, except
for request for creating "self-managed" associations, which MUST provide a display name.
Parameters
displayName
CharSequence: the display name of the device.
This value cannot be null.
Indicates whether the application requires the CompanionDeviceManager service to
collect an explicit confirmation from the user before creating an association, even if
such confirmation is not required from the service's perspective.
Requires Manifest.permission.REQUEST_COMPANION_SELF_MANAGED
Indicate whether the association would be managed by the companion application.
Requests for creating "self-managed" association MUST provide a Display name.
Requires Manifest.permission.REQUEST_COMPANION_SELF_MANAGED
Whether only a single device should match the provided filter.
When scanning for a single device with a specific BluetoothDeviceFilter mac
address, bonded devices are also searched among. This allows to obtain the necessary app
privileges even if the device is already paired.
Parameters
singleDevice
boolean: if true, scanning for a device will stop as soon as at least one
fitting device is found
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.