Condividi tramite


AdvertisingSetCallback.OnAdvertisingEnabled Method

Definition

Callback triggered in response to BluetoothLeAdvertiser#startAdvertisingSet indicating result of the operation.

[Android.Runtime.Register("onAdvertisingEnabled", "(Landroid/bluetooth/le/AdvertisingSet;ZI)V", "GetOnAdvertisingEnabled_Landroid_bluetooth_le_AdvertisingSet_ZIHandler", ApiSince=26)]
public virtual void OnAdvertisingEnabled (Android.Bluetooth.LE.AdvertisingSet? advertisingSet, bool enable, Android.Bluetooth.LE.AdvertiseResult status);
[<Android.Runtime.Register("onAdvertisingEnabled", "(Landroid/bluetooth/le/AdvertisingSet;ZI)V", "GetOnAdvertisingEnabled_Landroid_bluetooth_le_AdvertisingSet_ZIHandler", ApiSince=26)>]
abstract member OnAdvertisingEnabled : Android.Bluetooth.LE.AdvertisingSet * bool * Android.Bluetooth.LE.AdvertiseResult -> unit
override this.OnAdvertisingEnabled : Android.Bluetooth.LE.AdvertisingSet * bool * Android.Bluetooth.LE.AdvertiseResult -> unit

Parameters

advertisingSet
AdvertisingSet

The advertising set.

enable
Boolean
status
AdvertiseResult

Status of the operation.

Attributes

Remarks

Java documentation for android.bluetooth.le.AdvertisingSetCallback.onAdvertisingEnabled(android.bluetooth.le.AdvertisingSet, boolean, int).

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