BatteryPluginPlatform class abstract

BatteryPlugin의 플랫폼 인터페이스를 정의하는 추상 클래스다. PluginPlatformInterface 라이브러리를 사용하여 플랫폼 인터페이스를 정의하고 있다. 추상 클래스로서, 플랫폼별 구현체에서 반드시 구현되어야 하는 메서드를 선언하고 있다.

Inheritance
  • Object
  • PlatformInterface
  • BatteryPluginPlatform
Implementers

Constructors

BatteryPluginPlatform()
플랫폼별 구현체에서 반드시 구현되어야 하는 메서드를 선언한다.

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

getBatteryLevel() Future<int>
배터리 레벨을 가져오는 메서드, 추상 메서드로 구현되어 있지 않으므로 사용자 정의 플랫폼 구현체에서 재정의되어야 한다.
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

Static Properties

instance BatteryPluginPlatform
BatteryPluginPlatform의 기본 인스턴스를 저장한다. 기본적으로 MethodChannelBatteryPlugin을 사용한다.
getter/setter pair