語言

AdvertisingSetParameters.Builder.SetPrimaryPhy 方法

定義

多載

名稱 Description
SetPrimaryPhy(BluetoothPhy)

設定用於此廣告集的主要實體頻道。

SetPrimaryPhy(ScanSettingsPhy)
已淘汰.

透過 BluetoothPhy 過載設定主要廣告頻道。

SetPrimaryPhy(BluetoothPhy)

設定用於此廣告集的主要實體頻道。

[Android.Runtime.Register("setPrimaryPhy", "(I)Landroid/bluetooth/le/AdvertisingSetParameters$Builder;", "", ApiSince=26)]
public Android.Bluetooth.LE.AdvertisingSetParameters.Builder? SetPrimaryPhy(Android.Bluetooth.BluetoothPhy primaryPhy);
[<Android.Runtime.Register("setPrimaryPhy", "(I)Landroid/bluetooth/le/AdvertisingSetParameters$Builder;", "", ApiSince=26)>]
member this.SetPrimaryPhy : Android.Bluetooth.BluetoothPhy -> Android.Bluetooth.LE.AdvertisingSetParameters.Builder

參數

primaryPhy
BluetoothPhy

主要廣告實體通路: Le1m 或 LeCoded。

傳回

這個建商實例。

屬性

備註

設定用於此廣告集的主要實體頻道。

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

用於 IsLeCodedPhySupported 判斷此裝置是否支援 LE 編碼 PHY。

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

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

適用於

SetPrimaryPhy(ScanSettingsPhy)

警告

This method has the wrong enumeration. Use the version that takes an 'Android.Bluetooth.BluetoothPhy' instead.

透過 BluetoothPhy 過載設定主要廣告頻道。

[System.Obsolete("This method has the wrong enumeration. Use the version that takes an 'Android.Bluetooth.BluetoothPhy' instead.")]
public Android.Bluetooth.LE.AdvertisingSetParameters.Builder? SetPrimaryPhy(Android.Bluetooth.LE.ScanSettingsPhy primaryPhy);
[<System.Obsolete("This method has the wrong enumeration. Use the version that takes an 'Android.Bluetooth.BluetoothPhy' instead.")>]
member this.SetPrimaryPhy : Android.Bluetooth.LE.ScanSettingsPhy -> Android.Bluetooth.LE.AdvertisingSetParameters.Builder

參數

primaryPhy
ScanSettingsPhy

物理通道,轉換為 BluetoothPhy。 只有數值 1 和 3 有效。 AllSupported 不適用於廣告。

傳回

這個建商實例。

屬性

備註

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

適用於