fix uiservice sdk error code

Signed-off-by: zhubingwei <zhubingwei@huawei.com>
Change-Id: I5f1be47d3950bf787c22c58e197ad8be924051c5
This commit is contained in:
zhubingwei 2024-09-02 02:52:28 +00:00
parent f87f3b081b
commit 96243686c7
9 changed files with 41 additions and 40 deletions

View File

@ -31,7 +31,7 @@ import window from './@ohos.window';
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
export default class UIServiceExtensionAbility extends ExtensionAbility {
/**
@ -41,7 +41,7 @@ export default class UIServiceExtensionAbility extends ExtensionAbility {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
context: UIServiceExtensionContext;
@ -52,7 +52,7 @@ export default class UIServiceExtensionAbility extends ExtensionAbility {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
onCreate(want: Want): void;
@ -66,7 +66,7 @@ export default class UIServiceExtensionAbility extends ExtensionAbility {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
onRequest(want: Want, startId: number): void;
@ -78,7 +78,7 @@ export default class UIServiceExtensionAbility extends ExtensionAbility {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
onConnect(want: Want, proxy: UIServiceHostProxy): void;
@ -90,7 +90,7 @@ export default class UIServiceExtensionAbility extends ExtensionAbility {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
onDisconnect(want: Want, proxy: UIServiceHostProxy): void;
@ -101,7 +101,7 @@ export default class UIServiceExtensionAbility extends ExtensionAbility {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
onWindowWillCreate(config: window.ExtensionWindowConfig): void;
@ -112,7 +112,7 @@ export default class UIServiceExtensionAbility extends ExtensionAbility {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
onWindowDidCreate(window: window.Window): void;
@ -124,7 +124,7 @@ export default class UIServiceExtensionAbility extends ExtensionAbility {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
onData(proxy: UIServiceHostProxy, data: Record<string, Object>): void;
@ -134,7 +134,7 @@ export default class UIServiceExtensionAbility extends ExtensionAbility {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
onDestroy(): void;
}

View File

@ -426,7 +426,7 @@ declare namespace common {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
export type UIServiceExtensionContext = _UIServiceExtensionContext.default;
@ -437,7 +437,7 @@ declare namespace common {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 13
* @since 14
*/
export type UIServiceProxy = _UIServiceProxy.default;
@ -448,7 +448,7 @@ declare namespace common {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
export type UIServiceHostProxy = _UIServiceHostProxy.default;
@ -459,7 +459,7 @@ declare namespace common {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 13
* @since 14
*/
export type UIServiceExtensionConnectCallback = _UIServiceExtensionConnectCallback.default;
}

View File

@ -1979,14 +1979,14 @@ export default class ServiceExtensionContext extends ExtensionContext {
* @throws { BusinessError } 16000008 - The crowdtesting application expires.
* @throws { BusinessError } 16000011 - The context does not exist.
* @throws { BusinessError } 16000012 - The application is controlled.
* @throws { BusinessError } 16000013 - The application is controlled by EDM.
* @throws { BusinessError } 16000013 - The EDM prohibits the application from launching.
* @throws { BusinessError } 16000019 - Can not match any component.
* @throws { BusinessError } 16000050 - Internal error.
* @throws { BusinessError } 16200001 - The caller has been released.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
startUIServiceExtensionAbility(want: Want): Promise<void>;
}

View File

@ -3641,14 +3641,14 @@ export default class UIAbilityContext extends Context {
* @throws { BusinessError } 16000008 - The crowdtesting application expires.
* @throws { BusinessError } 16000011 - The context does not exist.
* @throws { BusinessError } 16000012 - The application is controlled.
* @throws { BusinessError } 16000013 - The application is controlled by EDM.
* @throws { BusinessError } 16000013 - The EDM prohibits the application from launching.
* @throws { BusinessError } 16000019 - Can not match any component.
* @throws { BusinessError } 16000050 - Internal error.
* @throws { BusinessError } 16200001 - The caller has been released.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 13
* @since 14
*/
startUIServiceExtensionAbility(want: Want): Promise<void>;
@ -3670,13 +3670,13 @@ export default class UIAbilityContext extends Context {
* @throws { BusinessError } 16000005 - The specified process does not have the permission.
* @throws { BusinessError } 16000008 - The crowdtesting application expires.
* @throws { BusinessError } 16000011 - The context does not exist.
* @throws { BusinessError } 16000013 - The EDM prohibits the application from launching.
* @throws { BusinessError } 16000050 - Internal error.
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
* @throws { BusinessError } 16000055 - Installation-free timed out.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 13
* @since 14
*/
connectUIServiceExtensionAbility(want: Want, callback: UIServiceExtensionConnectCallback) : Promise<UIServiceProxy>;
@ -3692,7 +3692,7 @@ export default class UIAbilityContext extends Context {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 13
* @since 14
*/
disconnectUIServiceExtensionAbility(proxy: UIServiceProxy): Promise<void>;
}

View File

@ -668,13 +668,13 @@ export default class UIExtensionContext extends ExtensionContext {
* @throws { BusinessError } 16000008 - The crowdtesting application expires.
* @throws { BusinessError } 16000011 - The context does not exist.
* @throws { BusinessError } 16000012 - The application is controlled.
* @throws { BusinessError } 16000013 - The application is controlled by EDM.
* @throws { BusinessError } 16000013 - The EDM prohibits the application from launching.
* @throws { BusinessError } 16000019 - Can not match any component.
* @throws { BusinessError } 16000050 - Internal error.
* @throws { BusinessError } 16200001 - The caller has been released.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 13
* @since 14
*/
startUIServiceExtensionAbility(want: Want): Promise<void>;
@ -696,12 +696,12 @@ export default class UIExtensionContext extends ExtensionContext {
* @throws { BusinessError } 16000005 - The specified process does not have the permission.
* @throws { BusinessError } 16000008 - The crowdtesting application expires.
* @throws { BusinessError } 16000011 - The context does not exist.
* @throws { BusinessError } 16000013 - The EDM prohibits the application from launching.
* @throws { BusinessError } 16000050 - Internal error.
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
* @throws { BusinessError } 16000055 - Installation-free timed out.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 13
* @since 14
*/
connectUIServiceExtensionAbility(want: Want, callback: UIServiceExtensionConnectCallback) : Promise<UIServiceProxy>;
@ -716,7 +716,7 @@ export default class UIExtensionContext extends ExtensionContext {
* @throws { BusinessError } 16000050 - Internal error.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 13
* @since 14
*/
disconnectUIServiceExtensionAbility(proxy: UIServiceProxy): Promise<void>;
}

View File

@ -25,7 +25,7 @@
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 13
* @since 14
*/
export default interface UIServiceExtensionConnectCallback {
/**
@ -35,7 +35,7 @@ export default interface UIServiceExtensionConnectCallback {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 13
* @since 14
*/
onData(data: Record<string, Object>): void;
@ -45,7 +45,7 @@ export default interface UIServiceExtensionConnectCallback {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 13
* @since 14
*/
onDisconnect(): void;
}

View File

@ -31,7 +31,7 @@ import { ConnectOptions } from '../ability/connectOptions';
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
export default class UIServiceExtensionContext extends ExtensionContext {
/**
@ -58,7 +58,7 @@ export default class UIServiceExtensionContext extends ExtensionContext {
* @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.
* @throws { BusinessError } 16000011 - The context does not exist.
* @throws { BusinessError } 16000012 - The application is controlled.
* @throws { BusinessError } 16000013 - The application is controlled by EDM.
* @throws { BusinessError } 16000013 - The EDM prohibits the application from launching.
* @throws { BusinessError } 16000019 - Can not match any component.
* @throws { BusinessError } 16000050 - Internal error.
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
@ -67,7 +67,7 @@ export default class UIServiceExtensionContext extends ExtensionContext {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
startAbility(want: Want, options?: StartOptions): Promise<void>;
@ -78,7 +78,7 @@ export default class UIServiceExtensionContext extends ExtensionContext {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
terminateSelf(): Promise<void>;
@ -97,7 +97,7 @@ export default class UIServiceExtensionContext extends ExtensionContext {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
startAbilityByType(type: string, wantParam: Record<string, Object>,
abilityStartCallback: AbilityStartCallback): Promise<void>;
@ -125,13 +125,14 @@ export default class UIServiceExtensionContext extends ExtensionContext {
* @throws { BusinessError } 16000006 - Cross-user operations are not allowed.
* @throws { BusinessError } 16000008 - The crowdtesting application expires.
* @throws { BusinessError } 16000011 - The context does not exist.
* @throws { BusinessError } 16000013 - The EDM prohibits the application from launching.
* @throws { BusinessError } 16000050 - Internal error.
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
* @throws { BusinessError } 16000055 - Installation-free timed out.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
connectServiceExtensionAbility(want: Want, options: ConnectOptions): number;
@ -147,7 +148,7 @@ export default class UIServiceExtensionContext extends ExtensionContext {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
disconnectServiceExtensionAbility(connectionId: number): Promise<void>;
}

View File

@ -25,7 +25,7 @@
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
export default interface UIServiceHostProxy {
/**
@ -39,7 +39,7 @@ export default interface UIServiceHostProxy {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 13
* @since 14
*/
sendData(data: Record<string, Object>): void;
}

View File

@ -25,7 +25,7 @@
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 13
* @since 14
*/
export default interface UIServiceProxy {
/**
@ -38,7 +38,7 @@ export default interface UIServiceProxy {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 13
* @since 14
*/
sendData(data: Record<string, Object>): void;
}