MethodChannelAppSettingsChecker class

An implementation of AppSettingsCheckerPlatform that uses method channels.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform. This channel is used to call native methods from the platform-specific implementations (e.g., Android, iOS).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBatteryOptimizationStatus() → Future<BatteryOptimizationStatus>
Retrieves the current battery optimization status for the app.
override
getPlatformVersion() → Future<String?>
Retrieves the platform version (e.g., Android 10 or iOS 14). This method communicates with the native platform to fetch the version.
override
isBatteryOptimizationDisabled() → Future<bool>
Checks whether battery optimization is disabled for the app.
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