disableLocation static method

Future<String?> disableLocation()

Disable User Location tracking

Implementation

static Future<String?> disableLocation() async {
  if (!_instance._countlyState.isInitialized) {
    String message = '"initWithConfig" must be called before "disableLocation"';
    log('disableLocation, $message', logLevel: LogLevel.ERROR);
    return message;
  }
  final String? result = await _channel.invokeMethod('disableLocation');
  return result;
}