W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
java.lang.Object
|---ohos.bundle.CommonEventInfo
public class CommonEventInfo
extends Object
implements Sequenceable
提供獲取靜態(tài)公共事件配置信息的方法,包括包名、類名和權(quán)限。
從接口 ohos.utils.Sequenceable 繼承的嵌套類/接口 |
---|
Sequenceable.ProducerT |
修飾符和類型 | 字段 | 描述 |
---|---|---|
static Sequenceable.ProducerCommonEventInfo | PRODUCER | 從 Parcel 創(chuàng)建一個(gè) CommonEventInfo 實(shí)例。 |
構(gòu)造函數(shù) | 描述 |
---|---|
CommonEventInfo() | 用于創(chuàng)建 CommonEventInfo 實(shí)例的默認(rèn)構(gòu)造函數(shù),用于存儲(chǔ)有關(guān)靜態(tài)公共事件的配置信息。 |
CommonEventInfo(CommonEventInfo source) | 用于通過從現(xiàn)有參數(shù)復(fù)制參數(shù)來創(chuàng)建 CommonEventInfo 實(shí)例的構(gòu)造函數(shù)。 |
修飾符和類型 | 方法 | 描述 |
---|---|---|
String | getBundleName() | 獲取此靜態(tài)公共事件的捆綁包名稱。 |
String | getClassName() | 獲取此靜態(tài)公共事件的類名。 |
ListString | getData() | 獲取此靜態(tài)公共事件中包含的附加數(shù)據(jù)列表。 |
ListString | getEvents() | 獲取此靜態(tài)公共事件中包含的事件列表。 |
String | getPermission() | 獲取實(shí)現(xiàn)該靜態(tài)公共事件所需的權(quán)限。 |
ListString | getType() | 獲取此靜態(tài)公共事件中定義的類型列表。 |
int | getUid() | 獲取此靜態(tài)公共事件的 UID。 |
boolean | marshalling(Parcel out) | 將此 Sequenceable 對(duì)象編組為 Parcel。 |
boolean | unmarshalling(Parcel in) | 從 Parcel 中解組此 Sequenceable 對(duì)象。 |
從類 java.lang.Object 繼承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
從接口 ohos.utils.Sequenceable 繼承的方法 |
---|
hasFileDescriptor |
public static final Sequenceable.ProducerCommonEventInfo PRODUCER
從 Parcel 創(chuàng)建一個(gè) CommonEventInfo 實(shí)例。
public CommonEventInfo()
用于創(chuàng)建 CommonEventInfo 實(shí)例的默認(rèn)構(gòu)造函數(shù),用于存儲(chǔ)有關(guān)靜態(tài)公共事件的配置信息。
public CommonEventInfo(CommonEventInfo source)
用于通過從現(xiàn)有參數(shù)復(fù)制參數(shù)來創(chuàng)建 CommonEventInfo 實(shí)例的構(gòu)造函數(shù)。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
source | 指示現(xiàn)有的 CommonEventInfo 實(shí)例。 |
public String getBundleName()
獲取此靜態(tài)公共事件的捆綁包名稱。
返回:
返回此靜態(tài)公共事件的包名稱。
public int getUid()
獲取此靜態(tài)公共事件的 UID。 UID 是分配給應(yīng)用程序的用戶 ID。
返回:
返回此靜態(tài)公共事件的 UID。
public String getClassName()
獲取此靜態(tài)公共事件的類名。
返回:
返回此靜態(tài)公共事件的類名。
public String getPermission()
獲取實(shí)現(xiàn)該靜態(tài)公共事件所需的權(quán)限。
返回:
返回實(shí)現(xiàn)此靜態(tài)公共事件所需的權(quán)限。
public ListString getData()
獲取此靜態(tài)公共事件中包含的附加數(shù)據(jù)列表。
返回:
返回此靜態(tài)公共事件中包含的附加數(shù)據(jù)列表。
public ListString getType()
獲取此靜態(tài)公共事件中定義的類型列表。
返回:
返回此靜態(tài)公共事件中定義的類型列表。
public ListString getEvents()
獲取此靜態(tài)公共事件中包含的事件列表。
返回:
返回此靜態(tài)公共事件中包含的事件列表。
public boolean marshalling(Parcel out)
從接口復(fù)制的描述:Sequenceable
將此 Sequenceable 對(duì)象編組為 Parcel。
指定者:
接口 Sequenceable 中的編組
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
out | 指示將 Sequenceable 對(duì)象編組到的 Parcel 對(duì)象。 |
返回:
如果編組成功,則返回 true; 否則返回 false。
public boolean unmarshalling(Parcel in)
從接口復(fù)制的描述:Sequenceable
從 Parcel 中解組此 Sequenceable 對(duì)象。
指定者:
在接口 Sequenceable 中解組
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
in | 指示已將 Sequenceable 對(duì)象編組到的 Parcel 對(duì)象。 |
返回:
如果解組成功,則返回 true; 否則返回 false。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: