目录

ScreenStatus

Interface Info

public interface ScreenStatus

Screen status API. Four constants are defined for the screen status: SCREENOFF (indicating that the screen is off), SCREENON (indicating that the screen is on), UNLOCK (indicating that the screen is unlocked), and UNKNOWN (indicating that the screen status is unknown).

Public Field Summary

Qualifier and Type

Field and Description

static int

SCREEN_OFF

The screen is off.

static int

SCREEN_ON

The screen is on.

static int

UNLOCK

The screen is unlocked.

static int

UNKNOWN

The screen status cannot be identified.

Public Method Summary

Qualifier and Type

Method Name

abstract int

getStatus()

Public Fields

[h2]SCREEN_OFF

Field

public static final int SCREEN_OFF

The screen is off.

For details, please refer to Constant-values.

[h2]SCREEN_ON

Field

public static final int SCREEN_ON

The screen is on.

For details, please refer to Constant-values.

[h2]UNLOCK

Field

public static final int UNLOCK

The screen is unlocked.

For details, please refer to Constant-values.

[h2]UNKNOWN

Field

public static final int UNKNOWN

The screen status cannot be identified.

For details, please refer to Constant-values.

Public Methods

[h2]getStatus

Method

public abstract int getStatus()

Obtains the screen status.

Returns

Type

Description

int

Displays screen status information. The screen status can be off, on, unlocked, or unknown.