PowerPreference


class PowerPreference


Defines the power consumption preference when requesting an adapter.

Summary

Constants

const Int

Prefers a high-performance adapter.

const Int

Prefers a power-saving adapter.

const Int

No power preference is specified.

Public companion functions

String
toString(value: Int)

Constants

HighPerformance

const val HighPerformance = 2: Int

Prefers a high-performance adapter.

LowPower

const val LowPower = 1: Int

Prefers a power-saving adapter.

Undefined

const val Undefined = 0: Int

No power preference is specified.

Public companion functions

toString

Added in 1.0.0-alpha05
fun toString(value: Int): String