Dela via


BluetoothLeAdvertiser.StartAdvertising Method

Definition

Overloads

StartAdvertising(AdvertiseSettings, AdvertiseData, AdvertiseCallback)

Start Bluetooth LE Advertising.

StartAdvertising(AdvertiseSettings, AdvertiseData, AdvertiseData, AdvertiseCallback)

Start Bluetooth LE Advertising.

StartAdvertising(AdvertiseSettings, AdvertiseData, AdvertiseCallback)

Start Bluetooth LE Advertising.

[Android.Runtime.Register("startAdvertising", "(Landroid/bluetooth/le/AdvertiseSettings;Landroid/bluetooth/le/AdvertiseData;Landroid/bluetooth/le/AdvertiseCallback;)V", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_ADVERTISE")]
public void StartAdvertising (Android.Bluetooth.LE.AdvertiseSettings? settings, Android.Bluetooth.LE.AdvertiseData? advertiseData, Android.Bluetooth.LE.AdvertiseCallback? callback);
[<Android.Runtime.Register("startAdvertising", "(Landroid/bluetooth/le/AdvertiseSettings;Landroid/bluetooth/le/AdvertiseData;Landroid/bluetooth/le/AdvertiseCallback;)V", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_ADVERTISE")>]
member this.StartAdvertising : Android.Bluetooth.LE.AdvertiseSettings * Android.Bluetooth.LE.AdvertiseData * Android.Bluetooth.LE.AdvertiseCallback -> unit

Parameters

settings
AdvertiseSettings

Settings for Bluetooth LE advertising.

advertiseData
AdvertiseData

Advertisement data to be broadcasted.

callback
AdvertiseCallback

Callback for advertising status.

Attributes

Remarks

Java documentation for android.bluetooth.le.BluetoothLeAdvertiser.startAdvertising(android.bluetooth.le.AdvertiseSettings, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertiseCallback).

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

StartAdvertising(AdvertiseSettings, AdvertiseData, AdvertiseData, AdvertiseCallback)

Start Bluetooth LE Advertising.

[Android.Runtime.Register("startAdvertising", "(Landroid/bluetooth/le/AdvertiseSettings;Landroid/bluetooth/le/AdvertiseData;Landroid/bluetooth/le/AdvertiseData;Landroid/bluetooth/le/AdvertiseCallback;)V", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_ADVERTISE")]
public void StartAdvertising (Android.Bluetooth.LE.AdvertiseSettings? settings, Android.Bluetooth.LE.AdvertiseData? advertiseData, Android.Bluetooth.LE.AdvertiseData? scanResponse, Android.Bluetooth.LE.AdvertiseCallback? callback);
[<Android.Runtime.Register("startAdvertising", "(Landroid/bluetooth/le/AdvertiseSettings;Landroid/bluetooth/le/AdvertiseData;Landroid/bluetooth/le/AdvertiseData;Landroid/bluetooth/le/AdvertiseCallback;)V", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_ADVERTISE")>]
member this.StartAdvertising : Android.Bluetooth.LE.AdvertiseSettings * Android.Bluetooth.LE.AdvertiseData * Android.Bluetooth.LE.AdvertiseData * Android.Bluetooth.LE.AdvertiseCallback -> unit

Parameters

settings
AdvertiseSettings

Settings for Bluetooth LE advertising.

advertiseData
AdvertiseData

Advertisement data to be advertised in advertisement packet.

scanResponse
AdvertiseData

Scan response associated with the advertisement data.

callback
AdvertiseCallback

Callback for advertising status.

Attributes

Remarks

Java documentation for android.bluetooth.le.BluetoothLeAdvertiser.startAdvertising(android.bluetooth.le.AdvertiseSettings, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertiseCallback).

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