MethodChannelFlutterMobileDiagnostics class

Default MethodChannel implementation for Android and iOS.

Inheritance

Constructors

MethodChannelFlutterMobileDiagnostics()
Creates the default channel-backed platform implementation.

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
Channel used to talk to native collectors. Exposed for tests.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBatteryHealth() Future<Map<String, dynamic>>
Raw battery metrics map from the host.
override
getBluetoothHealth() Future<Map<String, dynamic>>
Raw Bluetooth adapter map from the host.
override
getDeviceIdentity() Future<Map<String, dynamic>>
Raw device and app identity map from the host.
override
getFullHealthSnapshot(Map<String, dynamic> options) Future<Map<String, dynamic>>
Combined raw snapshot for all health domains in one round trip.
override
getMemoryHealth() Future<Map<String, dynamic>>
Raw memory metrics map from the host.
override
getNetworkHealth(Map<String, dynamic> options) Future<Map<String, dynamic>>
Raw network metrics map. options is DiagnosticsOptions.toChannelArgs.
override
getPerformanceHealth() Future<Map<String, dynamic>>
Raw thermal and CPU metrics map from the host.
override
getPlatformVersion() Future<String?>
Returns a host OS version string when the platform supports it.
override
getSecurityHealth(Map<String, dynamic> options) Future<Map<String, dynamic>>
Raw security signals map. options is DiagnosticsOptions.toChannelArgs.
override
getStorageHealth() Future<Map<String, dynamic>>
Raw storage metrics map from the host.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited