Sprache

AdvertisingSetCallback.OnAdvertisingEnabled Methode

Definition

Der Rückruf wurde als Reaktion auf BluetoothLeAdvertiser#startAdvertisingSet das Ergebnis des Vorgangs ausgelöst.

[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

Parameter

advertisingSet
AdvertisingSet

Der Werbesatz.

enable
Boolean
status
AdvertiseResult

Der Status des Vorgangs.

Attribute

Hinweise

Der Rückruf wurde als Reaktion auf BluetoothLeAdvertiser#startAdvertisingSet das Ergebnis des Vorgangs ausgelöst. Wenn der Status ADVERTISE_SUCCESS ist, ist werbesatz Werbung.

Java Dokumentation für android.bluetooth.le.AdvertisingSetCallback.onAdvertisingEnabled(android.bluetooth.le.AdvertisingSet, boolean, int).

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: