AdvertisingSetParameters.Builder.SetTxPowerLevel(AdvertiseTxPower) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the transmission power level for the advertising.
[Android.Runtime.Register("setTxPowerLevel", "(I)Landroid/bluetooth/le/AdvertisingSetParameters$Builder;", "", ApiSince=26)]
public Android.Bluetooth.LE.AdvertisingSetParameters.Builder? SetTxPowerLevel(Android.Bluetooth.LE.AdvertiseTxPower txPowerLevel);
[<Android.Runtime.Register("setTxPowerLevel", "(I)Landroid/bluetooth/le/AdvertisingSetParameters$Builder;", "", ApiSince=26)>]
member this.SetTxPowerLevel : Android.Bluetooth.LE.AdvertiseTxPower -> Android.Bluetooth.LE.AdvertisingSetParameters.Builder
Parameters
- txPowerLevel
- AdvertiseTxPower
The requested transmission power, in dBm. The Android 8 through 16 platform releases accept values from -127 through 1; the Android 17 release accepts values from -127 through 20. Recommended values are UltraLow, Low, Medium, or High. MaxAvailable requests the maximum available power.
Returns
This builder instance.
- Attributes
Remarks
Set the transmission power level for the advertising.
Android reference for android.bluetooth.le.AdvertisingSetParameters.Builder.setTxPowerLevel.
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.