mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-03-04 15:27:44 +00:00
commit
59506c0974
2
api/@ohos.app.ability.appManager.d.ts
vendored
2
api/@ohos.app.ability.appManager.d.ts
vendored
@ -896,7 +896,7 @@ declare namespace appManager {
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 16000050 - Internal error.
|
||||
* @throws { BusinessError } 16000073 - The app clone index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
|
26
api/application/ServiceExtensionContext.d.ts
vendored
26
api/application/ServiceExtensionContext.d.ts
vendored
@ -124,7 +124,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -218,7 +218,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -316,7 +316,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -422,7 +422,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -491,7 +491,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -564,7 +564,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -640,7 +640,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -744,7 +744,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -822,7 +822,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -1855,7 +1855,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* If the target UIExtensionAbility is visible, you can start the target UIExtensionAbility; If the target UIExtensionAbility is invisible,
|
||||
* you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible UIExtensionAbility.
|
||||
*
|
||||
* @param { Want } type - Indicates the UIExtensionAbility to start.
|
||||
* @param { Want } pickerWant - Indicates the UIExtensionAbility to start.
|
||||
* @param { AsyncCallback<void> } callback - The callback of requestModalUIExtension.
|
||||
* @throws { BusinessError } 201 - The application does not have permission to call the interface.
|
||||
* @throws { BusinessError } 202 - The application is not system-app, can not use system-api.
|
||||
@ -1880,7 +1880,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* If the target UIExtensionAbility is visible, you can start the target UIExtensionAbility; If the target UIExtensionAbility is invisible,
|
||||
* you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible UIExtensionAbility.
|
||||
*
|
||||
* @param { Want } type - Indicates the UIExtensionAbility to start.
|
||||
* @param { Want } pickerWant - Indicates the UIExtensionAbility to start.
|
||||
* @param { AsyncCallback<void> } callback - The callback of requestModalUIExtension.
|
||||
* @throws { BusinessError } 202 - The application is not system-app, can not use system-api.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -1898,7 +1898,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* If the target UIExtensionAbility is visible, you can start the target UIExtensionAbility; If the target UIExtensionAbility is invisible,
|
||||
* you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible UIExtensionAbility.
|
||||
*
|
||||
* @param { Want } type - Indicates the UIExtensionAbility to start.
|
||||
* @param { Want } pickerWant - Indicates the UIExtensionAbility to start.
|
||||
* @returns { Promise<void> } The promise returned by the requestModalUIExtension.
|
||||
* @throws { BusinessError } 201 - The application does not have permission to call the interface.
|
||||
* @throws { BusinessError } 202 - The application is not system-app, can not use system-api.
|
||||
@ -1923,7 +1923,7 @@ export default class ServiceExtensionContext extends ExtensionContext {
|
||||
* If the target UIExtensionAbility is visible, you can start the target UIExtensionAbility; If the target UIExtensionAbility is invisible,
|
||||
* you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible UIExtensionAbility.
|
||||
*
|
||||
* @param { Want } type - Indicates the UIExtensionAbility to start.
|
||||
* @param { Want } pickerWant - Indicates the UIExtensionAbility to start.
|
||||
* @returns { Promise<void> } The promise returned by the requestModalUIExtension.
|
||||
* @throws { BusinessError } 202 - The application is not system-app, can not use system-api.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
|
48
api/application/UIAbilityContext.d.ts
vendored
48
api/application/UIAbilityContext.d.ts
vendored
@ -277,7 +277,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
* @crossplatform
|
||||
@ -400,7 +400,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000068 - Ability already running.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16300003 - The target application is not self application.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
@ -529,7 +529,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000068 - Ability already running.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16300003 - The target application is not self application.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
@ -633,7 +633,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -702,7 +702,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -775,7 +775,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -882,7 +882,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000013 - The application is controlled by EDM.
|
||||
* @throws { BusinessError } 16000018 - The application is not allow jumping to other applications.
|
||||
* @throws { BusinessError } 16000050 - Internal error.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
* @since 12
|
||||
@ -948,7 +948,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000013 - The application is controlled by EDM.
|
||||
* @throws { BusinessError } 16000050 - Internal error.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -1022,7 +1022,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -1123,7 +1123,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -1199,7 +1199,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -1322,7 +1322,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
@ -1443,7 +1443,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
@ -1570,7 +1570,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
@ -1667,7 +1667,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -1768,7 +1768,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -1873,7 +1873,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -3007,7 +3007,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -3101,7 +3101,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -3199,7 +3199,7 @@ export default class UIAbilityContext extends Context {
|
||||
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
@ -3440,7 +3440,7 @@ export default class UIAbilityContext extends Context {
|
||||
* If the target UIExtensionAbility is visible, you can start the target UIExtensionAbility; If the target UIExtensionAbility is invisible,
|
||||
* you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible UIExtensionAbility.
|
||||
*
|
||||
* @param { Want } type - Indicates the UIExtensionAbility to start.
|
||||
* @param { Want } pickerWant - Indicates the UIExtensionAbility to start.
|
||||
* @param { AsyncCallback<void> } callback - The callback of requestModalUIExtension.
|
||||
* @throws { BusinessError } 201 - The application does not have permission to call the interface.
|
||||
* @throws { BusinessError } 202 - The application is not system-app, can not use system-api.
|
||||
@ -3464,7 +3464,7 @@ export default class UIAbilityContext extends Context {
|
||||
* If the target UIExtensionAbility is visible, you can start the target UIExtensionAbility; If the target UIExtensionAbility is invisible,
|
||||
* you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible UIExtensionAbility.
|
||||
*
|
||||
* @param { Want } type - Indicates the UIExtensionAbility to start.
|
||||
* @param { Want } pickerWant - Indicates the UIExtensionAbility to start.
|
||||
* @param { AsyncCallback<void> } callback - The callback of requestModalUIExtension.
|
||||
* @throws { BusinessError } 202 - The application is not system-app, can not use system-api.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.
|
||||
@ -3481,7 +3481,7 @@ export default class UIAbilityContext extends Context {
|
||||
* If the target UIExtensionAbility is visible, you can start the target UIExtensionAbility; If the target UIExtensionAbility is invisible,
|
||||
* you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible UIExtensionAbility.
|
||||
*
|
||||
* @param { Want } type - Indicates the UIExtensionAbility to start.
|
||||
* @param { Want } pickerWant - Indicates the UIExtensionAbility to start.
|
||||
* @returns { Promise<void> } The promise returned by the requestModalUIExtension.
|
||||
* @throws { BusinessError } 201 - The application does not have permission to call the interface.
|
||||
* @throws { BusinessError } 202 - The application is not system-app, can not use system-api.
|
||||
@ -3505,7 +3505,7 @@ export default class UIAbilityContext extends Context {
|
||||
* If the target UIExtensionAbility is visible, you can start the target UIExtensionAbility; If the target UIExtensionAbility is invisible,
|
||||
* you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible UIExtensionAbility.
|
||||
*
|
||||
* @param { Want } type - Indicates the UIExtensionAbility to start.
|
||||
* @param { Want } pickerWant - Indicates the UIExtensionAbility to start.
|
||||
* @returns { Promise<void> } The promise returned by the requestModalUIExtension.
|
||||
* @throws { BusinessError } 202 - The application is not system-app, can not use system-api.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.
|
||||
|
14
api/application/UIExtensionContext.d.ts
vendored
14
api/application/UIExtensionContext.d.ts
vendored
@ -97,7 +97,7 @@ export default class UIExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16000069 - The extension cannot start the third party application.
|
||||
* @throws { BusinessError } 16000070 - The extension cannot start the service.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
@ -164,7 +164,7 @@ export default class UIExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16000069 - The extension cannot start the third party application.
|
||||
* @throws { BusinessError } 16000070 - The extension cannot start the service.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
@ -235,7 +235,7 @@ export default class UIExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16000069 - The extension cannot start the third party application.
|
||||
* @throws { BusinessError } 16000070 - The extension cannot start the service.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
@ -338,7 +338,7 @@ export default class UIExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16000069 - The extension cannot start the third party application.
|
||||
* @throws { BusinessError } 16000070 - The extension cannot start the service.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
@ -405,7 +405,7 @@ export default class UIExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16000069 - The extension cannot start the third party application.
|
||||
* @throws { BusinessError } 16000070 - The extension cannot start the service.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
@ -476,7 +476,7 @@ export default class UIExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000055 - Installation-free timed out.
|
||||
* @throws { BusinessError } 16000069 - The extension cannot start the third party application.
|
||||
* @throws { BusinessError } 16000070 - The extension cannot start the service.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @throws { BusinessError } 16200001 - The caller has been released.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @stagemodelonly
|
||||
@ -503,7 +503,7 @@ export default class UIExtensionContext extends ExtensionContext {
|
||||
* @throws { BusinessError } 16000050 - Internal error.
|
||||
* @throws { BusinessError } 16000069 - The extension cannot start the third party application.
|
||||
* @throws { BusinessError } 16000070 - The extension cannot start the service.
|
||||
* @throws { BusinessError } 16000073 - The target app clone with the specified index does not exist.
|
||||
* @throws { BusinessError } 16000073 - The app clone index is invalid.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
|
Loading…
x
Reference in New Issue
Block a user