Android.Bluetooth.LE.BluetoothLeAdvertiser.StartAdvertising Method
Start Bluetooth LE Advertising.

Syntax

[Android.Runtime.Register("startAdvertising", "(Landroid/bluetooth/le/AdvertiseSettings;Landroid/bluetooth/le/AdvertiseData;Landroid/bluetooth/le/AdvertiseData;Landroid/bluetooth/le/AdvertiseCallback;)V", "")]
public void StartAdvertising (AdvertiseSettings settings, AdvertiseData advertiseData, AdvertiseData scanResponse, AdvertiseCallback callback)

Parameters

settings
Settings for Bluetooth LE advertising.
advertiseData
Advertisement data to be advertised in advertisement packet.
scanResponse
Scan response associated with the advertisement data.
callback
Callback for advertising status.

Remarks

Start Bluetooth LE Advertising. The advertiseData will be broadcasted if the operation succeeds. The scanResponse is returned when a scanning device sends an active scan request. This method returns immediately, the operation status is delivered through callback.

Requires NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#BLUETOOTH_ADMIN

[Android Documentation]

Requirements

Namespace: Android.Bluetooth.LE
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0