优惠码 第82页

InstallerCallback java.lang.Object |—ohos.rpc.RemoteObject |—|—ohos.bundle.InstallerCallback public abstract class InstallerCallback extends RemoteObject implements IInstallerCallback 提供在捆绑安装或卸载时调用的回调方法。 这个抽象类实现了 IInstallerCallback 接口。 嵌套类摘要 从接口 ohos.rpc.IRemoteObject 继承的嵌套类/接口 IRemoteObject.DeathRecipient 字段摘要 从接口 ohos.rpc.IRemoteObject 继承的字段 DUMP_TRANSACTION, INTERFACE_TRANSACTION, MAX_TRANSACTION_ID, MIN_TRANSACTION_ID, PING_TRANSACTION 构造函数摘要 构造函数 描述 InstallerCallback() 用于创建 InstallerCallback 的构造函数。 方法总结 修饰符和类型 方法 描述 IRemoteObject asObject() 获取当前对象。 abstract void onFinished(int status, String statusMessage) 在安装或卸载捆绑包时调用。 boolean onRemoteRequest(int code, MessageParcel data, MessageParcel reply, MessageOption option) 设置接收请求的条目。 从类 java.lang.Object 继承的方法 clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 从类 ohos.rpc.RemoteObject 继承的方法 addDeathRecipient, attachLocalInterface, dump, dump, finalize, getCallingPid, getCallingUid, getInterfaceDescriptor, isObjectDead, queryLocalInterface, removeDeathRecipient, sendRequest, slowPathDump, slowPathDump 构造函数详细信息 InstallerCallback public InstallerCallback() 用于创建 InstallerCallback 的构造函数。 Method Detail onRemoteRequest public boolean onRemoteRequest(int code, MessageParcel data, MessageParcel reply, MessageOption option) throws RemoteException 从类复制的描述:RemoteObject 设置接收请求的条目。 该方法由远程服务提供者实现。 使用 IPC 时,您需要使用自己的服务逻辑覆盖此方法。 覆盖: 类 RemoteObject 中的 onRemoteRequest 参数: 参数名称 参数描述 code 表示对端发送的服务请求码。 data 表示对端发送的MessageParcel 对象。 reply 表示远程服务发送的响应消息对象。 本地服务将响应数据写入 MessageParcel 对象。 option 指示操作是同步的还是异步的。 返回: 如果操作成功,则返回 true; 否则返回 false。 Throws: Throw名称 Throw描述 RemoteException 如果发生远程服务错误,则抛出此异常。 asObject public IRemoteObject asObject() 获取当前对象。 指定者: 接口 IRemoteBroker 中的 asObject 返回: 返回当前对象。 onFinished public...

HapModuleInfo java.lang.Object |—ohos.bundle.HapModuleInfo public class HapModuleInfo extends Object implements Sequenceable 获取模块的配置信息。 嵌套类摘要 从接口 ohos.utils.Sequenceable 继承的嵌套类/接口 Sequenceable.ProducerT 字段摘要 修饰符和类型 字段 描述 static int AUTO_MODE 表示app的颜色模式是跟随系统的。 static int DARK_MODE 表示应用的颜色模式为深色。 static int LIGHT_MODE 表示应用的颜色模式为浅色。 static Sequenceable.ProducerHapModuleInfo PRODUCER 从 Parcel 创建一个 HapModuleInfo 实例。 构造函数摘要 构造函数 描述 HapModuleInfo() HapModuleInfo 的默认构造函数。 HapModuleInfo(HapModuleInfo source) HapModuleInfo 的默认构造函数。 方法总结 修饰符和类型 方法 描述 ListAbilityInfo getAbilityInfos() 获得此 HAP 模块支持的ability。 String getBackgroundImg() 获取该HAP模块的背景图片信息。 String getBundleName() 获取捆绑包名称。 String getDescription() 获取此 HAP 模块的描述信息。 ListString getDeviceTypes() 获取此 HAP 模块支持的设备类型。 String getIconPath() 获取该HAP模块的图标资源路径。 String getLabel() 获取此 HAP 模块的标签。 AbilityInfo getMainAbility() 获取 mainAbilityInfo。 String getModuleName() 获取此 HAP 模块的名称。 String getName() 获取此 HAP 模块的类名。 ListString getReqCapabilities() 获取运行此 HAP 模块所需的设备ability。 int getSupportedModes() 获取该HAP模块支持的运行模式。 String getVersionName() 获取版本名称 boolean isInstallationFreeSupported() 获得免安装支持状态 boolean marshalling(Parcel out) 将此 Sequenceable 对象编组为 Parcel。 boolean unmarshalling(Parcel in) 从 Parcel 中解组此 Sequenceable 对象。 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 从接口 ohos.utils.Sequenceable 继承的方法 hasFileDescriptor 字段详细信息 AUTO_MODE public static final int AUTO_MODE 表示app的颜色模式是跟随系统的。 DARK_MODE public static final int DARK_MODE 表示应用的颜色模式为深色。 LIGHT_MODE public static final int LIGHT_MODE...

FormInfo.CustomizeData java.lang.Object |—ohos.bundle.FormInfo.CustomizeData public class FormInfo.CustomizeData extends Object 定义自定义数据 构造函数摘要 构造函数 描述 CustomizeData() 方法总结 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 构造函数详细信息 CustomizeData public CustomizeData()

FormInfo java.lang.Object |—ohos.bundle.FormInfo public class FormInfo extends Object implements Sequenceable 提供有关表单的信息 嵌套类摘要 修饰符和类型 类 描述 class FormInfo.CustomizeData 定义自定义数据。 static class FormInfo.FormType 枚举表单的类型。 从接口 ohos.utils.Sequenceable 继承的嵌套类/接口 Sequenceable.ProducerT 字段摘要 修饰符和类型 字段 描述 static Sequenceable.ProducerFormInfo PRODUCER 从 Parcel 对象创建 FormInfo 对象。 构造函数摘要 构造函数 描述 FormInfo() 用于创建 FormInfo 实例的默认构造函数。 FormInfo(FormInfo source) 用于通过复制现有实例的属性来创建 FormInfo 实例的构造函数。 方法总结 修饰符和类型 方法 描述 String getAbilityName() 获取该表单所属ability的类名。 String getBundleName() 获取此表单所属的应用程序的捆绑包名称。 String getColorMode() 获取此表单的颜色模式。 MapString,String getCustomizeDatas() 获取此表单中定义的自定义数据。 String getDeepLink() 已弃用。 此更改从 API 版本 5 开始生效。由 getFormConfigAbility() 替换 int getDefaultDimension() 获取此表单的默认网格样式。 String getDescription() 获取此表单的描述。 String getFormConfigAbility() 获取关于该表单的表单配置能力。 String getFormName() 获取此表单的名称。 boolean getFormVisibleNotify() 获取此表单的通知是否可见。 String getJsComponentName() 获取此 JS 表单的 JS 组件名称。 String getModuleName() 获取该表单所属的应用模块的名称。 String getOriginalBundleName() 获取此表单所属的应用程序的捆绑包名称。 ListInteger getSupportDimensions() 获取此表单支持的网格样式。 FormInfo.FormType getType() 获取此表单的类型。 boolean isDefaultForm() 检查此表单是否为默认表单。 boolean marshalling(Parcel out) 将此 FormInfo 对象编组为 Parcel 对象。 boolean unmarshalling(Parcel in) 从 Parcel 对象中解组此 FormInfo 对象。 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 从接口 ohos.utils.Sequenceable 继承的方法 hasFileDescriptor 字段详细信息 PRODUCER public static final Sequenceable.ProducerFormInfo PRODUCER 从 Parcel 对象创建 FormInfo 对象。 该常量与 marshalling(ohos.utils.Parcel) 一起使用,是对...

FormBaseInfo java.lang.Object |—ohos.bundle.FormBaseInfo public class FormBaseInfo extends Object implements Sequenceable 提供有关表单的基本信息。 嵌套类摘要 从接口 ohos.utils.Sequenceable 继承的嵌套类/接口 Sequenceable.ProducerT 字段摘要 修饰符和类型 字段 描述 static Sequenceable.ProducerFormBaseInfo PRODUCER 从 Parcel 对象创建 FormBaseInfo 对象。 构造函数摘要 构造函数 描述 FormBaseInfo() 用于创建 FormBaseInfo 实例的默认构造函数。 FormBaseInfo(FormBaseInfo source) 用于通过复制现有实例的属性来创建 FormBaseInfo 实例的构造函数。 方法总结 修饰符和类型 方法 描述 String getAbilityName() 获取该表单所属ability的类名。 String getBundleName() 获取此表单所属的应用程序的捆绑包名称。 String getFormName() 获取此表单的名称 String getModuleName() 获取该表单所属的应用模块的名称。 boolean marshalling(Parcel out) 将此 FormBaseInfo 对象编组为 Parcel 对象。 void setAbilityName(String name) 设置此表单的ability名称。 void setBundleName(String name) 设置此表单的捆绑包名称。 void setFormName(String name) 设置此表单的表单名称。 void setModuleName(String name) 设置此表单的模块名称。 boolean unmarshalling(Parcel in) 从 Parcel 对象中解组此 FormBaseInfo 对象。 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 从接口 ohos.utils.Sequenceable 继承的方法 hasFileDescriptor 字段详细信息 PRODUCER public static final Sequenceable.ProducerFormBaseInfo PRODUCER 从 Parcel 对象创建 FormBaseInfo 对象。 该常量与 marshalling(ohos.utils.Parcel) 一起使用,是对 unmarshalling(ohos.utils.Parcel) 方法的封装。 构造函数详细信息 FormBaseInfo public FormBaseInfo() 用于创建 FormBaseInfo 实例的默认构造函数。 FormBaseInfo public FormBaseInfo(FormBaseInfo source) 用于通过复制现有实例的属性来创建 FormBaseInfo 实例的构造函数。 参数: 参数名称 参数描述 source 指示现有的 FormBaseInfo 实例。 方法详情 getBundleName public String getBundleName() 获取此表单所属的应用程序的捆绑包名称。 返回: 返回应用程序包名称。 getModuleName public String getModuleName()...

ElementName java.lang.Object |—ohos.bundle.ElementName public class ElementName extends Object implements Sequenceable 包含基本的ability信息,它唯一地标识一个ability。 您可以使用此类获取元素中设置的字段的值,例如设备 ID、捆绑包名称和ability名称。 嵌套类摘要 从接口 ohos.utils.Sequenceable 继承的嵌套类/接口 Sequenceable.ProducerT 字段摘要 修饰符和类型 字段 描述 static Sequenceable.ProducerElementName PRODUCER Creates a ElementName instance from a Parcel. 构造函数摘要 构造函数 描述 ElementName() 用于创建 ElementName 实例的默认构造函数。 ElementName(String deviceId, String bundleName, String abilityName) 用于创建 ElementName 实例的参数化构造函数。 ElementName(ElementName elementName) 一种参数化构造函数,用于通过从现有参数复制参数来创建 ElementName 实例。 方法总结 修饰符和类型 方法 描述 static ElementName createRelative(String bundleName, String abilityName, String deviceId) 创建另一个 ElementName 实例,其中ability的类名称以包名称为前缀。 boolean equals(Object object) 检查两个 ElementName 对象是否包含相同的属性。 String getAbilityName() 获得ability的名称。 String getBundleName() 获取ability的捆绑包名称。 String getDeviceId() 获取ability的唯一设备ID。 String getShortClassName() 获取当前 ElementName 实例中ability的短类名。 String getURI() 获取ability的URI。 int hashCode() 计算 ElementName 对象的哈希值。 boolean marshalling(Parcel out) 将此 Sequenceable 对象编组为 Parcel。 void setAbilityName(String name) 设置ability名称。 void setBundleName(String bundleName) 设置ability的捆绑包名称。 void setDeviceId(String deviceId) 设置设备ID static ElementName unflattenFromString(String elementName) 从使用 getURI() 创建的字符串中恢复 ElementName 实例。 boolean unmarshalling(Parcel in) 从 Parcel 中解组此 Sequenceable 对象。 从类 java.lang.Object 继承的方法 clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait 从接口 ohos.utils.Sequenceable 继承的方法 hasFileDescriptor 字段详情 PRODUCER public static final Sequenceable.ProducerElementName PRODUCER 从 Parcel 创建一个 ElementName 实例。 构造函数详细信息 ElementName public ElementName() 用于创建 ElementName 实例的默认构造函数。 ElementName public ElementName(String deviceId, String bundleName, String abilityName) 用于创建 ElementName 实例的参数化构造函数。 参数: 参数名称...

CommonEventInfo java.lang.Object |—ohos.bundle.CommonEventInfo public class CommonEventInfo extends Object implements Sequenceable 提供获取静态公共事件配置信息的方法,包括包名、类名和权限。 嵌套类摘要 从接口 ohos.utils.Sequenceable 继承的嵌套类/接口 Sequenceable.ProducerT 字段摘要 修饰符和类型 字段 描述 static Sequenceable.ProducerCommonEventInfo PRODUCER 从 Parcel 创建一个 CommonEventInfo 实例。 构造函数摘要 构造函数 描述 CommonEventInfo() 用于创建 CommonEventInfo 实例的默认构造函数,用于存储有关静态公共事件的配置信息。 CommonEventInfo(CommonEventInfo source) 用于通过从现有参数复制参数来创建 CommonEventInfo 实例的构造函数。 方法总结 修饰符和类型 方法 描述 String getBundleName() 获取此静态公共事件的捆绑包名称。 String getClassName() 获取此静态公共事件的类名。 ListString getData() 获取此静态公共事件中包含的附加数据列表。 ListString getEvents() 获取此静态公共事件中包含的事件列表。 String getPermission() 获取实现该静态公共事件所需的权限。 ListString getType() 获取此静态公共事件中定义的类型列表。 int getUid() 获取此静态公共事件的 UID。 boolean marshalling(Parcel out) 将此 Sequenceable 对象编组为 Parcel。 boolean unmarshalling(Parcel in) 从 Parcel 中解组此 Sequenceable 对象。 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 从接口 ohos.utils.Sequenceable 继承的方法 hasFileDescriptor 字段详细信息 PRODUCER public static final Sequenceable.ProducerCommonEventInfo PRODUCER 从 Parcel 创建一个 CommonEventInfo 实例。 构造函数详细信息 CommonEventInfo public CommonEventInfo() 用于创建 CommonEventInfo 实例的默认构造函数,用于存储有关静态公共事件的配置信息。 CommonEventInfo public CommonEventInfo(CommonEventInfo source) 用于通过从现有参数复制参数来创建 CommonEventInfo 实例的构造函数。 参数: 参数名称 参数描述 source 指示现有的 CommonEventInfo 实例。 方法详情 getBundleName public String getBundleName() 获取此静态公共事件的捆绑包名称。 返回: 返回此静态公共事件的包名称。 getUid public int getUid() 获取此静态公共事件的 UID。 UID 是分配给应用程序的用户 ID。 返回: 返回此静态公共事件的 UID。...

BundleInfo.ReqPermissionDetail.UsedScene java.lang.Object |—ohos.bundle.BundleInfo.ReqPermissionDetail.UsedScene public class BundleInfo.ReqPermissionDetail.UsedScene extends Object 使用的场景 构造函数摘要 构造函数 描述 UsedScene(String when, String[] abilities) 方法总结 修饰符和类型 方法 描述 String[] getAbilities() String getWhen() 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 构造函数详细信息 UsedScene public UsedScene(String when, String[] abilities) 方法详情 getAbilities public String[] getAbilities() getWhen public String getWhen()

BundleInfo.ReqPermissionDetail java.lang.Object |—ohos.bundle.BundleInfo.ReqPermissionDetail public class BundleInfo.ReqPermissionDetail extends Object ability的许可细节是请求。 嵌套类摘要 修饰符和类型 类 描述 class BundleInfo.ReqPermissionDetail.UsedScene 使用的场景 构造函数摘要 构造函数 描述 ReqPermissionDetail(String name, String reason) 方法总结 修饰符和类型 方法 描述 String getName() String getReason() int getReasonId() BundleInfo.ReqPermissionDetail.UsedScene getUsedScene() void setUsedScene(BundleInfo.ReqPermissionDetail.UsedScene usedScene) 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 构造函数详细信息 ReqPermissionDetail public ReqPermissionDetail(String name, String reason) 方法详情 getName public String getName() getReason public String getReason() getReasonId public int getReasonId() getUsedScene public BundleInfo.ReqPermissionDetail.UsedScene getUsedScene() setUsedScene public void setUsedScene(BundleInfo.ReqPermissionDetail.UsedScene usedScene)

BundleInfo java.lang.Object |—ohos.bundle.BundleInfo public class BundleInfo extends Object implements Sequenceable 获取捆绑包的配置信息 嵌套类摘要 修饰符和类型 类 描述 class BundleInfo.ReqPermissionDetail ability 的权限详情,即 request。 从接口 ohos.utils.Sequenceable 继承的嵌套类/接口 Sequenceable.ProducerT 字段摘要 修饰符和类型 字段 描述 ListAbilityInfo abilityInfos 表示此捆绑包中包含的所有ability的列表。 String appId 表示该bundle所属的应用程序的ID。 ApplicationInfo appInfo 指示有关此捆绑包所属的应用程序的信息。 boolean debug 表示调试模式 String jointUserId 指示此应用程序和其他应用程序之间共享的用户 ID 的名称。 String name 指示此捆绑包的名称。 String originalName 指示此原始捆绑包的名称。 static Sequenceable.ProducerBundleInfo PRODUCER 从 Parcel 创建一个 BundleInfo 实例。 ListBundleInfo.ReqPermissionDetail reqPermissionDetails 指示文件 config.json 中定义的所需权限详细信息。 ListString reqPermissions 指示文件 config.json 中定义的所需权限名称。 String type 指示此原始捆绑包的名称。 int uid 指示此捆绑包所属的应用程序的 UID。 构造函数摘要 构造函数 描述 BundleInfo() 用于创建 BundleInfo 实例的默认构造函数。 BundleInfo(BundleInfo source) 一种参数化构造函数,用于通过从现有参数复制参数来创建 BundleInfo 实例。 方法总结 修饰符和类型 方法 描述 ListAbilityInfo getAbilityInfos() 获取当前捆绑包中包含的所有ability的列表。 String getAppId() 获取当前bundle所属的应用ID。 ApplicationInfo getAppInfo() 获取当前bundle所属的应用信息。 int getCompatibleVersion() 获取应用程序运行所需的最低 API 版本。 boolean getCompressNativeLibs() 获取此 bundle 的 CompressNativeLibs 信息。 String getCpuAbi() 获取该bundle的cpuAbi信息。 String getEntryModuleName() 获取应用的Entry.hap文件的模块名。 ListString getHapModuleNames() 获取应用的所有HAP模块的全名。 long getInstallTime() 获取应用安装时间 String getJointUserId() 获取此应用程序和其他应用程序共享的用户 ID 的名称。 int getMaxSdkVersion() 获取运行应用程序所需的最高 SDK 版本。 int getMinCompatibleVersionCode() 获取应用程序运行所需的最低兼容版本 int getMinSdkVersion() 获取运行应用程序所需的最低SDK版本 ListString getModuleDirs() 获取应用所有模块的路径 ListString getModuleNames() 获取应用程序的所有模块名称 ListString getModulePublicDirs()...