BatteryPlugin class
모든 기능을 호출할 수 있는 BatteryPlugin
Constructors
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
-
getBatteryChargingState(
) → Stream< BatteryState> - BatteryChargingState 클래스의 'getChargingStateStream()'메서드를 호출하여 배터리 충전 상태를 구독하는 스트림을 반환한다. 반환 값은 Stream
-
getBatteryLevel(
) → Future< int> - BatteryPluginPlatform 인터페이스의 'getBatteryLevel()' 메서드를 호출하여 배터리의 레벨을 가져온다. 반환 값을 Future
-
getBatteryLevelStream(
) → Stream< int> - BatteryLevel 클래스의 getBatteryLevelStream() 메서드를 호출하여 배터리 레벨을 구독하는 스트림을 반환, 반환 값을 Stream
-
getPlatformVersion(
) → Future< String?> - BatteryPluginPlatform 인터페이스의 getPlatformVersion() 메서드를 호출하여 플랫폼 버전 정보를 가져온다. 반환 값을 Future<String?>
-
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