Language

ScanRecord.GetServiceData(ParcelUuid) Method

Definition

Returns the service data byte array associated with the serviceUuid.

[Android.Runtime.Register("getServiceData", "(Landroid/os/ParcelUuid;)[B", "")]
public byte[]? GetServiceData(Android.OS.ParcelUuid? serviceDataUuid);
[<Android.Runtime.Register("getServiceData", "(Landroid/os/ParcelUuid;)[B", "")>]
member this.GetServiceData : Android.OS.ParcelUuid -> byte[]

Parameters

serviceDataUuid
ParcelUuid

The service UUID used to look up the data.

Returns

Byte[]

The bytes stored for the UUID, or null if no data is available for it.

Attributes

Remarks

Returns the service data byte array associated with the serviceUuid. Returns null if the serviceDataUuid is not found.

Java documentation for android.bluetooth.le.ScanRecord.getServiceData(android.os.ParcelUuid).

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