文档管理中心

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

API参考Java API参考ohos.interwork.uiClassRemoteViewEx

RemoteViewEx

java.lang.Object

|---ohos.interwork.ui.RemoteViewEx

public class RemoteViewEx
extends Object
implements ParcelableEx
Converts a ohos layout into one that can be identified by other systems and writes the converted layout into a Parcel object.

Since:

3

Constructor Summary

展开

Constructor

Description

RemoteViewEx​(Context context, ComponentProvider componentProvider)

Constructs a RemoteViewEx object.

Method Summary

展开

Modifier and Type

Method

Description

int

getRemoteResourceId​(int resId)

Obtains the resource ID that matches a specified ohos resource ID and can be identified by other systems.

void

marshallingEx​(Parcel out)

Marshals a componentProvider object and then writes it into a Parcelobject, with name.

展开

Methods inherited from class java.lang.Object

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

展开

Methods inherited from interface ohos.interwork.utils.ParcelableEx

unmarshallingEx

Constructor Detail

RemoteViewEx

public RemoteViewEx​(Context context, ComponentProvider componentProvider)

Constructs a RemoteViewEx object.

Parameters:

展开

Parameter Name

Parameter Description

componentProvider

Indicates the ComponentProvider to be serialized.

Method Detail

marshallingEx

public void marshallingEx​(Parcel out)

Marshals a componentProvider object and then writes it into a Parcelobject, with name.

Specified by:

marshallingEx in interface ParcelableEx

Parameters:

展开

Parameter Name

Parameter Description

out

Indicates the object into which the marshaled RemoteViewEx object will be written.

getRemoteResourceId

public int getRemoteResourceId​(int resId)

Obtains the resource ID that matches a specified ohos resource ID and can be identified by other systems.

Parameters:

展开

Parameter Name

Parameter Description

resId

Indicates the ohos resource ID.

Returns:

Returns the obtained resource ID.

Since:

4

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