Sequenceablepublic class HapModuleInfo extends Object implements Sequenceable
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
AUTO_MODE |
Indicates that the color mode of app is following the system.
|
static int |
DARK_MODE |
Indicates that the color mode of app is dark.
|
static int |
LIGHT_MODE |
Indicates that the color mode of app is light.
|
static Sequenceable.Producer<HapModuleInfo> |
PRODUCER |
Creates a
HapModuleInfo instance from a Parcel. |
| 构造器 | 说明 |
|---|---|
HapModuleInfo() |
default construct function to HapModuleInfo.
|
HapModuleInfo(HapModuleInfo source) |
default construct function to HapModuleInfo.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<AbilityInfo> |
getAbilityInfos() |
Obtains the abilities supported by this HAP module.
|
String |
getBackgroundImg() |
Obtains the background image information about this HAP module.
|
String |
getBundleName() |
Obtains bundle name.
|
String |
getDescription() |
Obtains the description of this HAP module.
|
List<String> |
getDeviceTypes() |
Obtains the device types supported by this HAP module.
|
String |
getIconPath() |
Obtains the icon resource path of this HAP module.
|
String |
getLabel() |
Obtains the label of this HAP module.
|
AbilityInfo |
getMainAbility() |
Obtains mainAbilityInfo.
|
String |
getModuleName() |
Obtains the name of this HAP module.
|
String |
getName() |
Obtains the class name of this HAP module.
|
List<String> |
getReqCapabilities() |
Obtains the device capabilities required to run this HAP module.
|
int |
getSupportedModes() |
Obtains the running mode supported by this HAP module.
|
String |
getVersionName() |
Obtains version name.
|
boolean |
isInstallationFreeSupported() |
Obtains installation free supported state
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final int AUTO_MODE
public static final int DARK_MODE
public static final int LIGHT_MODE
public static final Sequenceable.Producer<HapModuleInfo> PRODUCER
HapModuleInfo instance from a Parcel.public HapModuleInfo()
public HapModuleInfo(HapModuleInfo source)
source - source hapModuleInfo object.public String getName()
name attribute in the
module tag of the config.json file.public String getDescription()
public String getIconPath()
public String getLabel()
public String getBackgroundImg()
public int getSupportedModes()
supportedModes attribute in the module tag of the config.json file.public List<String> getReqCapabilities()
reqCapabilities attribute in the module tag of the config.json file.public List<String> getDeviceTypes()
public List<AbilityInfo> getAbilityInfos()
public String getModuleName()
public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..Sequenceable.marshalling(Parcel)public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.Sequenceable.unmarshalling(Parcel)public AbilityInfo getMainAbility()
public boolean isInstallationFreeSupported()
public String getBundleName()
public String getVersionName()