public class LauncherAbilityInfo extends Object
| 构造器 | 说明 |
|---|---|
LauncherAbilityInfo(Context context,
AbilityInfo info,
int userId) |
A constructor used to create a
LauncherAbilityInfo instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
ApplicationInfo |
getApplicationInfo() |
Obtains information about the application to which the ability belongs.
|
ElementName |
getElementName() |
Obtains the element name of the ability.
|
Element |
getIcon() |
Obtains the icon of the ability.
|
long |
getInstallTime() |
Obtains the application installation time.
|
String |
getLabel() |
Obtains the label of the ability.
|
String |
getName() |
Obtains the class name of the ability.
|
int |
getUserId() |
Obtains the ID of the user to which the ability belongs.
|
public LauncherAbilityInfo(Context context, AbilityInfo info, int userId)
LauncherAbilityInfo instance.context - Indicates the Context object of the launcher ability.info - Indicates the launcher ability.userId - Indicates the user ID.public ApplicationInfo getApplicationInfo()
public ElementName getElementName()
public int getUserId()
public String getName()
public String getLabel()
public Element getIcon()
public long getInstallTime()