文档管理中心

您当前正在浏览HarmonyOS开发者3.0版本配套的开发者文档,对应API能力级别为API 8 Release。此版本文档已归档不再维护,推荐您使用HarmonyOS NEXT版本

API参考Java API参考ohos.interwork.eventhandlerClassInnerEventUtils

InnerEventUtils

java.lang.Object

|---ohos.interwork.eventhandler.InnerEventUtils

public final class InnerEventUtils
extends Object
Utility class used to obtain InnerEvent information.

Since:

4

Method Summary

展开

Modifier 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.

展开

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

getArg1

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

getArg2

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

getPacMapEx

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

setExInfo

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

setExInfo

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:

PacMapEx

搜索
请输入您想要搜索的关键词