js-apidiff-ability.md 14.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
| Change Type | Old Version | New Version | d.ts File |
| ---- | ------ | ------ | -------- |
|Added|NA|Class name: LaunchReason<br>Method or attribute name: SHARE = 5|@ohos.app.ability.AbilityConstant.d.ts|
|Added|NA|Module name: ohos.app.ability.abilityManager<br>Class name: abilityManager<br>Method or attribute name: function acquireShareData(missionId: number, callback: AsyncCallback\<{ [key: string]: Object }>): void;|@ohos.app.ability.abilityManager.d.ts|
|Added|NA|Module name: ohos.app.ability.abilityManager<br>Class name: abilityManager<br>Method or attribute name: function acquireShareData(missionId: number): Promise\<{ [key: string]: Object }>;|@ohos.app.ability.abilityManager.d.ts|
|Added|NA|Module name: ohos.app.ability.appManager<br>Class name: appManager<br>Method or attribute name: function isSharedBundleRunning(bundleName: string, versionCode: number): Promise\<boolean>;|@ohos.app.ability.appManager.d.ts|
|Added|NA|Module name: ohos.app.ability.appManager<br>Class name: appManager<br>Method or attribute name: function isSharedBundleRunning(bundleName: string, versionCode: number, callback: AsyncCallback\<boolean>): void;|@ohos.app.ability.appManager.d.ts|
|Added|NA|Class name: appRecovery<br>Method or attribute name: function setRestartWant(want: Want): void;|@ohos.app.ability.appRecovery.d.ts|
|Added|NA|Class name: appRecovery<br>Method or attribute name: function saveAppState(context?: UIAbilityContext): boolean;|@ohos.app.ability.appRecovery.d.ts|
|Added|NA|Module name: ohos.app.ability.quickFixManager<br>Class name: quickFixManager<br>Method or attribute name: function revokeQuickFix(bundleName: string, callback: AsyncCallback\<void>): void;|@ohos.app.ability.quickFixManager.d.ts|
|Added|NA|Module name: ohos.app.ability.quickFixManager<br>Class name: quickFixManager<br>Method or attribute name: function revokeQuickFix(bundleName: string): Promise\<void>;|@ohos.app.ability.quickFixManager.d.ts|
|Added|NA|Module name: ohos.app.ability.UIAbility<br>Class name: OnRemoteStateChangeCallback|@ohos.app.ability.UIAbility.d.ts|
|Added|NA|Module name: ohos.app.ability.UIAbility<br>Class name: OnRemoteStateChangeCallback<br>Method or attribute name: (msg: string): void;|@ohos.app.ability.UIAbility.d.ts|
|Added|NA|Module name: ohos.app.ability.UIAbility<br>Class name: Caller<br>Method or attribute name: onRemoteStateChange(callback: OnRemoteStateChangeCallback): void;|@ohos.app.ability.UIAbility.d.ts|
|Added|NA|Class name: UIAbility<br>Method or attribute name: onShare(wantParam: { [key: string]: Object }): void;|@ohos.app.ability.UIAbility.d.ts|
|Added|NA|Module name: ohos.app.ability.wantConstant<br>Class name: Params<br>Method or attribute name: ABILITY_RECOVERY_RESTART = "ohos.ability.params.abilityRecoveryRestart"|@ohos.app.ability.wantConstant.d.ts|
|Added|NA|Module name: ohos.app.ability.wantConstant<br>Class name: Params<br>Method or attribute name: CONTENT_TITLE_KEY = 'ohos.extra.param.key.contentTitle'|@ohos.app.ability.wantConstant.d.ts|
|Added|NA|Module name: ohos.app.ability.wantConstant<br>Class name: Params<br>Method or attribute name: SHARE_ABSTRACT_KEY = 'ohos.extra.param.key.shareAbstract'|@ohos.app.ability.wantConstant.d.ts|
|Added|NA|Module name: ohos.app.ability.wantConstant<br>Class name: Params<br>Method or attribute name: SHARE_URL_KEY = 'ohos.extra.param.key.shareUrl'|@ohos.app.ability.wantConstant.d.ts|
|Added|NA|Module name: ohos.app.form.FormExtensionAbility<br>Class name: FormExtensionAbility<br>Method or attribute name: onAcquireFormData?(formId: string): { [key: string]: Object };|@ohos.app.form.FormExtensionAbility.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function getRunningFormInfos(callback: AsyncCallback\<Array\<formInfo.RunningFormInfo>>, hostBundleName?: string): void;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function getRunningFormInfos(hostBundleName?: string): Promise\<Array\<formInfo.RunningFormInfo>>;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function on(type: "formAdd", observerCallback: Callback\<formInfo.RunningFormInfo>, bundleName?: string): void;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function off(type: "formAdd", observerCallback?: Callback\<formInfo.RunningFormInfo>, bundleName?: string): void;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function on(type: "formRemove", observerCallback: Callback\<formInfo.RunningFormInfo>, bundleName?: string): void;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function off(type: "formRemove", observerCallback?: Callback\<formInfo.RunningFormInfo>, bundleName?: string): void;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function acquireFormData(formId: string, callback: AsyncCallback\<{[key: string]: Object}>): void;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function acquireFormData(formId: string): Promise\<{[key: string]: Object}>;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function getRunningFormInfosByFilter(formProviderFilter: formInfo.FormProviderFilter): Promise\<Array\<formInfo.RunningFormInfo>>;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function getRunningFormInfosByFilter(formProviderFilter: formInfo.FormProviderFilter, callback: AsyncCallback\<Array\<formInfo.RunningFormInfo>>): void;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function getRunningFormInfoById(formId: string): Promise\<formInfo.RunningFormInfo>;|@ohos.app.form.formHost.d.ts|
|Added|NA|Module name: ohos.app.form.formHost<br>Class name: formHost<br>Method or attribute name: function getRunningFormInfoById(formId: string, callback: AsyncCallback\<formInfo.RunningFormInfo>): void;|@ohos.app.form.formHost.d.ts|
|Added|NA|Class name: FormInfo<br>Method or attribute name: descriptionId: number;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: FormParam<br>Method or attribute name: LAUNCH_REASON_KEY = "ohos.extra.param.key.form_launch_reason"|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: FormParam<br>Method or attribute name: PARAM_FORM_CUSTOMIZE_KEY = "ohos.extra.param.key.form_customize"|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: VisibilityType<br>Method or attribute name: UNKNOWN = 0|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: LaunchReason|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: LaunchReason<br>Method or attribute name: FORM_DEFAULT = 1|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: LaunchReason<br>Method or attribute name: FORM_SHARE|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: FormProviderFilter|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: FormProviderFilter<br>Method or attribute name: bundleName: string;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: FormProviderFilter<br>Method or attribute name: formName ?: string;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: FormProviderFilter<br>Method or attribute name: moduleName ?: string;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: FormProviderFilter<br>Method or attribute name: abilityName ?: string;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: RunningFormInfo|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: RunningFormInfo<br>Method or attribute name: readonly formId: string;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: RunningFormInfo<br>Method or attribute name: readonly bundleName: string;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: RunningFormInfo<br>Method or attribute name: readonly hostBundleName: string;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: RunningFormInfo<br>Method or attribute name: readonly visibilityType: VisibilityType;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: RunningFormInfo<br>Method or attribute name: readonly moduleName: string;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: RunningFormInfo<br>Method or attribute name: readonly abilityName: string;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: RunningFormInfo<br>Method or attribute name: readonly formName: string;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.app.form.formInfo<br>Class name: RunningFormInfo<br>Method or attribute name: readonly dimension: number;|@ohos.app.form.formInfo.d.ts|
|Added|NA|Module name: ohos.application.StaticSubscriberExtensionAbility<br>Class name: StaticSubscriberExtensionAbility<br>Method or attribute name: context: StaticSubscriberExtensionContext;|@ohos.application.StaticSubscriberExtensionAbility.d.ts|
|Added|NA|Module name: ohos.application.StaticSubscriberExtensionContext<br>Class name: StaticSubscriberExtensionContext|@ohos.application.StaticSubscriberExtensionContext.d.ts|
|Added|NA|Module name: ohos.application.StaticSubscriberExtensionContext<br>Class name: StaticSubscriberExtensionContext<br>Method or attribute name: startAbility(want: Want, callback: AsyncCallback\<void>): void;|@ohos.application.StaticSubscriberExtensionContext.d.ts|
|Added|NA|Module name: ohos.application.StaticSubscriberExtensionContext<br>Class name: StaticSubscriberExtensionContext<br>Method or attribute name: startAbility(want: Want): Promise\<void>;|@ohos.application.StaticSubscriberExtensionContext.d.ts|
|Added|NA|Module name: ohos.application.uriPermissionManager<br>Class name: uriPermissionManager|@ohos.application.uriPermissionManager.d.ts|
|Added|NA|Module name: ohos.application.uriPermissionManager<br>Class name: uriPermissionManager<br>Method or attribute name: function grantUriPermission(uri: string, flag: wantConstant.Flags, targetBundleName: string, callback: AsyncCallback\<number>): void;|@ohos.application.uriPermissionManager.d.ts|
|Added|NA|Module name: ohos.application.uriPermissionManager<br>Class name: uriPermissionManager<br>Method or attribute name: function grantUriPermission(uri: string, flag: wantConstant.Flags, targetBundleName: string): Promise\<number>;|@ohos.application.uriPermissionManager.d.ts|
|Added|NA|Module name: ohos.application.uriPermissionManager<br>Class name: uriPermissionManager<br>Method or attribute name: function revokeUriPermission(uri: string, targetBundleName: string, callback: AsyncCallback\<number>): void;|@ohos.application.uriPermissionManager.d.ts|
|Added|NA|Module name: ohos.application.uriPermissionManager<br>Class name: uriPermissionManager<br>Method or attribute name: function revokeUriPermission(uri: string, targetBundleName: string): Promise\<number>;|@ohos.application.uriPermissionManager.d.ts|
|Added|NA|Module name: ErrorObserver<br>Class name: ErrorObserver<br>Method or attribute name: onException?(errObject: Error): void;|ErrorObserver.d.ts|
|Added|NA|Class name: ServiceExtensionContext<br>Method or attribute name: startAbilityByCallWithAccount(want: Want, accountId: number): Promise\<Caller>;|ServiceExtensionContext.d.ts|
|Added|NA|Class name: UIAbilityContext<br>Method or attribute name: startAbilityByCallWithAccount(want: Want, accountId: number): Promise\<Caller>;|UIAbilityContext.d.ts|
|Permission added|Class name: ServiceExtensionContext<br>Method or attribute name: startServiceExtensionAbility(want: Want, callback: AsyncCallback\<void>): void;<br>Permission: N/A|Class name: ServiceExtensionContext<br>Method or attribute name: startServiceExtensionAbility(want: Want, callback: AsyncCallback\<void>): void;<br>Permission: ohos.permission.START_INVISIBLE_ABILITY|ServiceExtensionContext.d.ts|
|Permission added|Class name: ServiceExtensionContext<br>Method or attribute name: startServiceExtensionAbility(want: Want): Promise\<void>;<br>Permission: N/A|Class name: ServiceExtensionContext<br>Method or attribute name: startServiceExtensionAbility(want: Want): Promise\<void>;<br>Permission: ohos.permission.START_INVISIBLE_ABILITY|ServiceExtensionContext.d.ts|
|Permission added|Class name: ServiceExtensionContext<br>Method or attribute name: connectServiceExtensionAbility(want: Want, options: ConnectOptions): number;<br>Permission: N/A|Class name: ServiceExtensionContext<br>Method or attribute name: connectServiceExtensionAbility(want: Want, options: ConnectOptions): number;<br>Permission: ohos.permission.ABILITY_BACKGROUND_COMMUNICATION|ServiceExtensionContext.d.ts|
|Permission added|Class name: UIAbilityContext<br>Method or attribute name: startServiceExtensionAbility(want: Want, callback: AsyncCallback\<void>): void;<br>Permission: N/A|Class name: UIAbilityContext<br>Method or attribute name: startServiceExtensionAbility(want: Want, callback: AsyncCallback\<void>): void;<br>Permission: ohos.permission.START_INVISIBLE_ABILITY|UIAbilityContext.d.ts|
|Permission added|Class name: UIAbilityContext<br>Method or attribute name: startServiceExtensionAbility(want: Want): Promise\<void>;<br>Permission: N/A|Class name: UIAbilityContext<br>Method or attribute name: startServiceExtensionAbility(want: Want): Promise\<void>;<br>Permission: ohos.permission.ABILITY_BACKGROUND_COMMUNICATION|UIAbilityContext.d.ts|
|Permission added|Class name: UIAbilityContext<br>Method or attribute name: connectServiceExtensionAbility(want: Want, options: ConnectOptions): number;<br>Permission: N/A|Class name: UIAbilityContext<br>Method or attribute name: connectServiceExtensionAbility(want: Want, options: ConnectOptions): number;<br>Permission: ohos.permission.ABILITY_BACKGROUND_COMMUNICATION|UIAbilityContext.d.ts|