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

























您当前正在浏览HarmonyOS开发者3.0版本配套的开发者文档,对应API能力级别为API 8 Release。此版本文档已归档不再维护,推荐您使用HarmonyOS NEXT版本。
| |---ohos.interwork.ui.RemoteViewEx public class RemoteViewEx extends Object implements ParcelableEx |
Since:
3Constructor | Description |
|---|---|
RemoteViewEx(Context context, ComponentProvider componentProvider) | Constructs a RemoteViewEx object. |
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 interface ohos.interwork.utils.ParcelableEx |
|---|
public RemoteViewEx(Context context, ComponentProvider componentProvider)
Constructs a RemoteViewEx object.Parameters:
Parameter Name | Parameter Description |
|---|---|
componentProvider | Indicates the ComponentProvider to be serialized. |
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. |
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
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功