setLocatetionEnableStringForBluetoothScan method Null safety

  1. @override
Future<void> setLocatetionEnableStringForBluetoothScan(
  1. String title,
  2. String message
)
override

设置定位功能开启提示信息 安卓6到11之间,扫描蓝牙需要系统定位功能已打开,否则无法扫描 当系统定位功能未打开时,弹出提示框,并引导用户跳转到系统定位开启界面

title 标题 message 内容

Implementation

@override
Future<void> setLocatetionEnableStringForBluetoothScan(
    String title, String message) async {
  methodChannel.invokeMethod(
      PluginConstants.methodSetLocatetionEnableStringForBluetoothScan,
      [title, message]);
}