native
fun BluetoothLeAdvertiser.Factory.native(context: Context, forceLegacy: Boolean = false): BluetoothLeAdvertiser
Creates an instance of BluetoothLeAdvertiser for Android.
The implementation differs based on Android version. Limited functionality is available prior to Android O.
Return
Instance of BluetoothLeAdvertiser.
Parameters
context
An application context.
forceLegacy
If set to true, the legacy implementation will be used on Android O and newer.