MethodChannelBatteryPlugin class

Flutter 앱에서 BatteryPlugin 기능을 호출하여 플랫폼의 기능을 사용할 수 있도록 한다. 사용자는 MethodChannelBatteryPlugin을 통해 네이티브 플랫폼의 배터리 정보를 가져오고 사용할 수 있다.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
네이티브 플랫폼과 통신하기 위한 MethodChannel, BatteryPlugin의 기능을 호출하고 응답을 받는 데 사용된다.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBatteryLevel() Future<int>
배터리 레벨을 가져오는 메서드 MethodChannel의 invokeMethod() 메서드를 사용하여 배터리 레벨을 요청하고 응답을 기다린다.
override
getPlatformVersion() Future<String?>
네이티브 플랫폼의 플랫폼 버전 정보를 가져오는 메서드 invokeMethod() 메서드를 사용하여 플랫폼 버전 정보를 요청하고 응답을 기다린다. 응답은 Future<String?> 형태로 반환
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