智能客服
你问我答,随时在线为你解决问题

























您当前正在浏览HarmonyOS开发者3.0版本配套的开发者文档,对应API能力级别为API 8 Release。此版本文档已归档不再维护,推荐您使用HarmonyOS NEXT版本。
| |---ohos.interwork.eventhandler.InnerEventUtils public final class InnerEventUtils extends Object |
Since:
4Modifier and Type | Method | Description |
|---|---|---|
static int | getArg1(InnerEvent innerEvent) | Obtains the value of the external attribute arg1 for a specified InnerEvent. |
static int | getArg2(InnerEvent innerEvent) | Obtains the value of the external attribute arg2 for a specified InnerEvent. |
static PacMapEx | getPacMapEx(InnerEvent innerEvent) | Obtains the value of the external attribute pacMapEx for a specified InnerEvent. |
static void | setExInfo(InnerEvent innerEvent, int arg1, int arg2) | Sets the external attributes for a specified InnerEvent. |
static void | setExInfo(InnerEvent innerEvent, int arg1, int arg2, PacMapEx pacMapEx) | Sets the external attributes for a specified InnerEvent, including the arg1, arg2, and pacMapEx attributes. |
public static int getArg1(InnerEvent innerEvent)
Obtains the value of the external attribute arg1 for a specified InnerEvent.Parameters:
Parameter Name | Parameter Description |
|---|---|
innerEvent | Indicates the InnerEvent whose attribute value is to be obtained. |
Returns:
Returns the value of the external attribute arg1 for the specified InnerEvent.
Since:
4
public static int getArg2(InnerEvent innerEvent)
Obtains the value of the external attribute arg2 for a specified InnerEvent.Parameters:
Parameter Name | Parameter Description |
|---|---|
innerEvent | Indicates the InnerEvent whose attribute value is to be obtained. |
Returns:
Returns the value of the external attribute arg2 for the specified InnerEvent.
Since:
4
public static PacMapEx getPacMapEx(InnerEvent innerEvent)
Obtains the value of the external attribute pacMapEx for a specified InnerEvent.Parameters:
Parameter Name | Parameter Description |
|---|---|
innerEvent | Indicates the InnerEvent whose attribute value is to be obtained. |
Returns:
Returns the value of the external attribute pacMapEx for the specified InnerEvent.
Since:
4
public static void setExInfo(InnerEvent innerEvent, int arg1, int arg2)
Sets the external attributes for a specified InnerEvent.Parameters:
Parameter Name | Parameter Description |
|---|---|
innerEvent | Indicates the InnerEvent to set. |
arg1 | Indicates the value of the external attribute arg1 to set. |
arg2 | Indicates the value of the external attribute arg2 to set. |
Since:
4
public static void setExInfo(InnerEvent innerEvent, int arg1, int arg2, PacMapEx pacMapEx)
Sets the external attributes for a specified InnerEvent, including the arg1, arg2, and pacMapEx attributes.Parameters:
Parameter Name | Parameter Description |
|---|---|
innerEvent | Indicates the InnerEvent to set. |
arg1 | Indicates the value of the external attribute arg1 to set. |
arg2 | Indicates the value of the external attribute arg2 to set. |
pacMapEx | Indicates the value of the external attribute pacMapEx to set. |
Since:
5
See Also:
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功