checkCellular method

  1. @override
Future<Map<String, dynamic>?> checkCellular({
  1. String host = 'www.apple.com',
  2. int port = 443,
  3. double timeoutSeconds = 5.0,
})
override

Supported on iOS only. Runs the passive (interface available) + active (data reachable) cellular checks. Returns the raw map; the public API wraps it into CellularCheckResult.

Implementation

@override
Future<Map<String, dynamic>?> checkCellular({
  String host = 'www.apple.com',
  int port = 443,
  double timeoutSeconds = 5.0,
}) async {
  return await methodChannel.invokeMapMethod<String, dynamic>(
    'checkCellular',
    <String, dynamic>{
      "host": host,
      "port": port,
      "timeoutSeconds": timeoutSeconds,
    },
  );
}