Sequenceablepublic class FormInfo extends Object implements Sequenceable
| 限定符和类型 | 类 | 说明 |
|---|---|---|
class |
FormInfo.CustomizeData |
Defines custom data.
|
static class |
FormInfo.FormType |
Enumerates types of a form.
|
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<FormInfo> |
PRODUCER |
Creates a
FormInfo object from a Parcel object. |
| 构造器 | 说明 |
|---|---|
FormInfo() |
Default constructor used to create a
FormInfo instance. |
FormInfo(FormInfo source) |
A constructor used to create a
FormInfo instance by copying attributes of an existing one. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getAbilityName() |
Obtains the class name of the ability to which this form belongs.
|
String |
getBundleName() |
Obtains the bundle name of the application to which this form belongs.
|
String |
getColorMode() |
Obtains the color mode of this form.
|
Map<String,String> |
getCustomizeDatas() |
Obtains the custom data defined in this form.
|
String |
getDeepLink() |
已过时。
This change is effective since API version 5. Replaced by
getFormConfigAbility() |
int |
getDefaultDimension() |
Obtains the default grid style of this form.
|
String |
getDescription() |
Obtains the description of this form.
|
String |
getFormConfigAbility() |
Obtains the form config ability about this form.
|
String |
getFormName() |
Obtains the name of this form.
|
boolean |
getFormVisibleNotify() |
Obtains whether notify visible of this form.
|
String |
getJsComponentName() |
Obtains the JS component name of this JS form.
|
String |
getModuleName() |
Obtains the name of the application module to which this form belongs.
|
String |
getOriginalBundleName() |
Obtains the bundle name of the application to which this form belongs.
|
List<Integer> |
getSupportDimensions() |
Obtains the grid styles supported by this form.
|
FormInfo.FormType |
getType() |
Obtains the type of this form.
|
boolean |
isDefaultForm() |
Checks whether this form is a default form.
|
boolean |
marshalling(Parcel out) |
Marshals this
FormInfo object into a Parcel object. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
FormInfo object from a Parcel object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<FormInfo> PRODUCER
FormInfo object from a Parcel object. This constant is used together
with marshalling(ohos.utils.Parcel) and is the encapsulation of the unmarshalling(ohos.utils.Parcel) method.public FormInfo()
FormInfo instance.public FormInfo(FormInfo source)
FormInfo instance by copying attributes of an existing one.source - Indicates the existing FormInfo instance.public String getBundleName()
public String getOriginalBundleName()
public String getModuleName()
public String getAbilityName()
public String getFormName()
public String getDescription()
public boolean getFormVisibleNotify()
public FormInfo.FormType getType()
public String getColorMode()
auto, dark, or light.public String getJsComponentName()
This method is valid only when the type of this form is JS.
null otherwise.@Deprecated public String getDeepLink()
getFormConfigAbility()A deep link is a user-defined URI that links to a specific page of an app.
public String getFormConfigAbility()
A form config ability is a user-defined ability.
public boolean isDefaultForm()
A form is considered a default form if no form name is specified. Specifically, the system determines
whether a form is a default form based on the value of the isDefault attribute defined under
forms in the config.json file of the Ohos application.
true if this form is a default form; returns false otherwise.public int getDefaultDimension()
1 (one row and two columns),
2 (two rows and two columns), 3 (2 rows and 4 columns), and 4 (4 rows and 4 columns).getSupportDimensions()public List<Integer> getSupportDimensions()
1
(one row and two columns), 2 (two rows and two columns), 3 (2 rows and 4 columns),
and 4 (4 rows and 4 columns).public Map<String,String> getCustomizeDatas()
Map object containing the custom data.public boolean marshalling(Parcel out)
FormInfo object into a Parcel object.marshalling 在接口中 Sequenceableout - Indicates the Parcel object for marshalling.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
FormInfo object from a Parcel object.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object for unmarshalling.true if the unmarshalling is successful; returns false otherwise.