FlutterMobileDiagnosticsPlatform class abstract
Abstract contract for native diagnostics collection on Android and iOS.
Tests replace instance with a fake. Production uses MethodChannelFlutterMobileDiagnostics.
- Inheritance
-
- Object
- PlatformInterface
- FlutterMobileDiagnosticsPlatform
- Implementers
Constructors
- FlutterMobileDiagnosticsPlatform()
- Creates a platform implementation. Subclasses must call this constructor.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
-
getBluetoothHealth(
) → Future< Map< String, dynamic> > - Raw Bluetooth adapter map from the host.
-
getDeviceIdentity(
) → Future< Map< String, dynamic> > - Raw device and app identity map from the host.
-
getFullHealthSnapshot(
Map< String, dynamic> options) → Future<Map< String, dynamic> > - Combined raw snapshot for all health domains in one round trip.
-
getMemoryHealth(
) → Future< Map< String, dynamic> > - Raw memory metrics map from the host.
-
getNetworkHealth(
Map< String, dynamic> options) → Future<Map< String, dynamic> > -
Raw network metrics map.
optionsis DiagnosticsOptions.toChannelArgs. -
getPerformanceHealth(
) → Future< Map< String, dynamic> > - Raw thermal and CPU metrics map from the host.
-
getPlatformVersion(
) → Future< String?> - Returns a host OS version string when the platform supports it.
-
getSecurityHealth(
Map< String, dynamic> options) → Future<Map< String, dynamic> > -
Raw security signals map.
optionsis DiagnosticsOptions.toChannelArgs. -
getStorageHealth(
) → Future< Map< String, dynamic> > - Raw storage metrics map from the host.
-
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
Static Properties
- instance ↔ FlutterMobileDiagnosticsPlatform
-
The active platform implementation.
getter/setter pair