語言

AdvertisingSetParameters.Builder.SetAnonymous(Boolean) 方法

定義

設定是否應從所有封包中省略廣告主地址。

[Android.Runtime.Register("setAnonymous", "(Z)Landroid/bluetooth/le/AdvertisingSetParameters$Builder;", "", ApiSince=26)]
public Android.Bluetooth.LE.AdvertisingSetParameters.Builder? SetAnonymous(bool isAnonymous);
[<Android.Runtime.Register("setAnonymous", "(Z)Landroid/bluetooth/le/AdvertisingSetParameters$Builder;", "", ApiSince=26)>]
member this.SetAnonymous : bool -> Android.Bluetooth.LE.AdvertisingSetParameters.Builder

參數

isAnonymous
Boolean

是否應該使用匿名廣告。

傳回

屬性

備註

設定是否應從所有封包中省略廣告主地址。 若使用此模式,則無法為此組合啟用定期廣告。

此模式僅在未使用舊有模式時使用。

Android 參考資料。android.bluetooth.le.AdvertisingSetParameters.Builder.setAnonymous

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於