Sdílet prostřednictvím


AdvertisingSet.SetScanResponseData(AdvertiseData) Method

Definition

Set/update scan response data.

[Android.Runtime.Register("setScanResponseData", "(Landroid/bluetooth/le/AdvertiseData;)V", "", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_ADVERTISE")]
public void SetScanResponseData (Android.Bluetooth.LE.AdvertiseData? scanResponse);
[<Android.Runtime.Register("setScanResponseData", "(Landroid/bluetooth/le/AdvertiseData;)V", "", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_ADVERTISE")>]
member this.SetScanResponseData : Android.Bluetooth.LE.AdvertiseData -> unit

Parameters

scanResponse
AdvertiseData

Scan response associated with the advertisement data. Size must not exceed BluetoothAdapter#getLeMaximumAdvertisingDataLength. If the update takes place when the advertising set is enabled, the data can be maximum 251 bytes long.

Attributes

Remarks

Set/update scan response data. Make sure that data doesn't exceed the size limit for specified AdvertisingSetParameters. This method returns immediately, the operation status is delivered through callback.onScanResponseDataSet().

Java documentation for android.bluetooth.le.AdvertisingSet.setScanResponseData(android.bluetooth.le.AdvertiseData).

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