Share via


BluetoothDevice.FetchUuidsWithSdp Method

Definition

Perform a service discovery on the remote device to get the UUIDs supported.

[Android.Runtime.Register("fetchUuidsWithSdp", "()Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool FetchUuidsWithSdp ();
[<Android.Runtime.Register("fetchUuidsWithSdp", "()Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.FetchUuidsWithSdp : unit -> bool

Returns

False if the check fails, True if the process of initiating an ACL connection to the remote device was started or cached UUIDs will be broadcast.

Attributes

Remarks

Perform a service discovery on the remote device to get the UUIDs supported.

This API is asynchronous and #ACTION_UUID intent is sent, with the UUIDs supported by the remote end. If there is an error in getting the SDP records or if the process takes a long time, or the device is bonding and we have its UUIDs cached, #ACTION_UUID intent is sent with the UUIDs that is currently present in the cache. Clients should use the #getUuids to get UUIDs if service discovery is not to be performed. If there is an ongoing bonding process, service discovery or device inquiry, the request will be queued.

Java documentation for android.bluetooth.BluetoothDevice.fetchUuidsWithSdp().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to