getGPSStatus function

Future<bool> getGPSStatus()

判断GPS是否开启,GPS或者AGPS开启一个就认为是开启的

Implementation

Future<bool> getGPSStatus() async {
  if (!supportPlatform) return false;
  final bool? state = await curiosityChannel.invokeMethod('getGPSStatus');
  return state ?? false;
}