目录

ApplicationStatus

Interface Info

public interface ApplicationStatus

App status API. Three constants are defined for the app status: RUNNING (indicating that the app is running), SILENT (indicating that the app is not started), and UNKNOWN (indicating that the app status is unknown).

Public Field Summary

Qualifier and Type

Field and Description

static int

RUNNING

The app is running.

static int

SILENT

The app is not started.

static int

UNKNOWN

The app status cannot be obtained.

Public Method Summary

Qualifier and Type

Method Name

int

getStatus()

Public Fields

[h2]RUNNING

Field

public static final int RUNNING

The app is running.

For details, please refer to Constant-values.

[h2]SILENT

Field

public static final int SILENT

The app is not started.

For details, please refer to Constant-values.

[h2]UNKNOWN

Field

public static final int UNKNOWN

The app status cannot be obtained.

For details, please refer to Constant-values.

Public Methods

[h2]getStatus

Method

public int getStatus()

Obtains the app status.

Returns

Type

Description

int

App status. The value can be RUNNING, SILENT, or UNKNOWN.