public static final class BundleActiveStates.State extends Object
BundleActiveStates.queryNextState(BundleActiveStates.State)| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
STATE_TYPE_ABILITY_ENDED |
Indicates the state that the ability is invisible on the UI.
|
static int |
STATE_TYPE_ABILITY_PAUSED |
Indicates the state that the ability enters the background.
|
static int |
STATE_TYPE_ABILITY_RESUMED |
Indicates the state that the ability enters the foreground.
|
static int |
STATE_TYPE_CALL_LINK |
Indicates the state that the user has performed a shortcut-related operation.
|
static int |
STATE_TYPE_FOREGROUND_ABILITY_BEGIN |
Indicates the state that the foreground ability is started.
|
static int |
STATE_TYPE_FOREGROUND_ABILITY_END |
Indicates the state that the foreground ability is stopped.
|
static int |
STATE_TYPE_HAS_INTERACTED |
Indicates the state that the user has interacted with the application.
|
static int |
STATE_TYPE_PROFILE_MODIFIED |
Indicates the state that the device configuration has changed.
|
static int |
STATE_TYPE_UNKNOW |
Indicates an unknown state type.
|
static int |
STATE_TYPE_USAGE_PRIORITY_GROUP_MODIFIED |
Indicates the state that the usage priority group of the application has changed.
|
| 构造器 | 说明 |
|---|---|
State() |
Default constructor used to create an empty
State instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
queryAppUsagePriorityGroup() |
Queries the usage priority group of the application
to which this
BundleActiveStates.State object belongs. |
String |
queryBundleName() |
Queries the bundle name associated with this state.
|
String |
queryIndexOfLink() |
Queries the shortcut ID associated with this state.
|
String |
queryNameOfClass() |
Queries the class name associated with this state.
|
long |
queryStateOccurredMs() |
Queries the time when this state occurred.
|
int |
queryStateType() |
Queries the state type of this state.
|
public static final int STATE_TYPE_ABILITY_ENDED
public static final int STATE_TYPE_ABILITY_PAUSED
You can obtain the bundle name and class name associated
with this type of states via queryBundleName() and queryNameOfClass(), respectively.
public static final int STATE_TYPE_ABILITY_RESUMED
You can obtain the bundle name and class name associated
with this type of states via queryBundleName() and queryNameOfClass(), respectively.
public static final int STATE_TYPE_CALL_LINK
public static final int STATE_TYPE_FOREGROUND_ABILITY_BEGIN
You can obtain the bundle name and class name associated
with this type of states via queryBundleName() and queryNameOfClass(), respectively.
public static final int STATE_TYPE_FOREGROUND_ABILITY_END
You can obtain the bundle name and class name associated
with this type of states via queryBundleName() and queryNameOfClass(), respectively.
public static final int STATE_TYPE_HAS_INTERACTED
public static final int STATE_TYPE_PROFILE_MODIFIED
public static final int STATE_TYPE_UNKNOW
This state type is not supported currently.
public static final int STATE_TYPE_USAGE_PRIORITY_GROUP_MODIFIED
You can obtain the new usage priority group via queryAppUsagePriorityGroup().
public State()
State instance.public int queryAppUsagePriorityGroup()
BundleActiveStates.State object belongs.STATE_TYPE_USAGE_PRIORITY_GROUP_MODIFIED; returns 0 otherwise.BundleActiveInfosMgr.USAGE_PRIORITY_GROUP_PRIVILEGE,
BundleActiveInfosMgr.USAGE_PRIORITY_GROUP_ALIVE,
BundleActiveInfosMgr.USAGE_PRIORITY_GROUP_PREFERENCE,
BundleActiveInfosMgr.USAGE_PRIORITY_GROUP_OFTEN,
BundleActiveInfosMgr.USAGE_PRIORITY_GROUP_SELDOM,
BundleActiveInfosMgr.USAGE_PRIORITY_GROUP_NEVERpublic String queryNameOfClass()
public int queryStateType()
STATE_TYPE_ABILITY_PAUSED,
STATE_TYPE_ABILITY_RESUMED,
STATE_TYPE_PROFILE_MODIFIED,
STATE_TYPE_HAS_INTERACTED,
STATE_TYPE_USAGE_PRIORITY_GROUP_MODIFIED,
STATE_TYPE_FOREGROUND_ABILITY_BEGIN,
STATE_TYPE_FOREGROUND_ABILITY_END,
STATE_TYPE_ABILITY_ENDED,
STATE_TYPE_CALL_LINK,
STATE_TYPE_UNKNOWpublic String queryBundleName()
public String queryIndexOfLink()
STATE_TYPE_CALL_LINK;
returns null otherwise.public long queryStateOccurredMs()