PowerPreference


public final class PowerPreference


Defines the power consumption preference when requesting an adapter.

Summary

Constants

static final int

Prefers a high-performance adapter.

static final int

Prefers a power-saving adapter.

static final int

No power preference is specified.

Public methods

static final @NonNull String
toString(int value)

Constants

HighPerformance

public static final int HighPerformance = 2

Prefers a high-performance adapter.

LowPower

public static final int LowPower = 1

Prefers a power-saving adapter.

Undefined

public static final int Undefined = 0

No power preference is specified.

Public methods

toString

Added in 1.0.0-alpha05
public static final @NonNull String toString(int value)