46 Star 176 Fork 4.8K

OpenHarmony/interface_sdk-js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
@ohos.app.ability.common.d.ts 16.95 KB
一键复制 编辑 原始数据 按行查看 历史
zhangzezhong 提交于 3个月前 . sdk add _AbilityResult
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
/*
* Copyright (c) 2022-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit AbilityKit
*/
/*** if arkts 1.1 */
import * as _UIAbilityContext from './application/UIAbilityContext';
import type * as _UIExtensionContext from './application/UIExtensionContext';
import type * as _AutoFillExtensionContext from './application/AutoFillExtensionContext';
import * as _AbilityStageContext from './application/AbilityStageContext';
import * as _ApplicationContext from './application/ApplicationContext';
import * as _BaseContext from './application/BaseContext';
import * as _Context from './application/Context';
import * as _ExtensionContext from './application/ExtensionContext';
import * as _FormExtensionContext from './application/FormExtensionContext';
import * as _ServiceExtensionContext from './application/ServiceExtensionContext';
import * as _EventHub from './application/EventHub';
import { PacMap as _PacMap } from './ability/dataAbilityHelper';
import type _AbilityStartCallback from './application/AbilityStartCallback';
import { ConnectOptions as _ConnectOptions } from './ability/connectOptions';
import type * as _VpnExtensionContext from './application/VpnExtensionContext';
import type { AutoStartupCallback as _AutoStartupCallback } from './application/AutoStartupCallback';
import type { AutoStartupInfo as _AutoStartupInfo } from './application/AutoStartupInfo';
import type * as _EmbeddableUIAbilityContext from './application/EmbeddableUIAbilityContext';
import type * as _PhotoEditorExtensionContext from './application/PhotoEditorExtensionContext';
import * as _UIServiceExtensionContext from './application/UIServiceExtensionContext';
import * as _UIServiceProxy from './application/UIServiceProxy';
import * as _UIServiceHostProxy from './application/UIServiceHostProxy';
import * as _UIServiceExtensionConnectCallback from './application/UIServiceExtensionConnectCallback';
import * as _AppServiceExtensionContext from './application/AppServiceExtensionContext';
/*** endif */
import { AbilityResult as _AbilityResult } from './ability/abilityResult';
/*** if arkts 1.2 */
import _UIAbilityContext from './application/UIAbilityContext';
import type _UIExtensionContext from './application/UIExtensionContext';
import _AbilityStageContext from './application/AbilityStageContext';
import _ApplicationContext from './application/ApplicationContext';
import _Context from './application/Context';
import _ExtensionContext from './application/ExtensionContext';
import _ServiceExtensionContext from './application/ServiceExtensionContext';
/*** endif */
/**
* This module provides application context classes and common data structures.
*
* @namespace common
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* This module provides application context classes and common data structures.
*
* @namespace common
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @since 10
*/
/**
* This module provides application context classes and common data structures.
*
* @namespace common
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare namespace common {
/**
* The context of an ability. It allows access to ability-specific resources.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* The context of an ability. It allows access to ability-specific resources.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @since 10
*/
/**
* The context of an ability. It allows access to ability-specific resources.
*
* @typedef { _UIAbilityContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @atomicservice
* @since 11
*/
export type UIAbilityContext = _UIAbilityContext.default;
/**
* The context of an ability. It allows access to ability-specific resources.
*
* @typedef { _UIAbilityContext }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
export type UIAbilityContext = _UIAbilityContext;
/**
* The context of an abilityStage. It allows access to abilityStage-specific resources.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* The context of an abilityStage. It allows access to abilityStage-specific resources.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @since 10
*/
/**
* The context of an abilityStage. It allows access to abilityStage-specific resources.
*
* @typedef { _AbilityStageContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @atomicservice
* @since 11
*/
export type AbilityStageContext = _AbilityStageContext.default;
/**
* The context of an abilityStage. It allows access to abilityStage-specific resources.
*
* @typedef { _AbilityStageContext }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
export type AbilityStageContext = _AbilityStageContext;
/**
* The context of an application. It allows access to application-specific resources.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* The context of an application. It allows access to application-specific resources.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @since 10
*/
/**
* The context of an application. It allows access to application-specific resources.
*
* @typedef { _ApplicationContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @atomicservice
* @since 11
*/
export type ApplicationContext = _ApplicationContext.default;
/**
* The context of an application. It allows access to application-specific resources.
*
* @typedef { _ApplicationContext }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
export type ApplicationContext = _ApplicationContext;
/**
* The base context of 'app.Context' for FA Mode or 'application.Context' for Stage Mode.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* The base context of 'app.Context' for FA Mode or 'application.Context' for Stage Mode.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @since 10
*/
/**
* The base context of 'app.Context' for FA Mode or 'application.Context' for Stage Mode.
*
* @typedef { _BaseContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @atomicservice
* @since 11
*/
export type BaseContext = _BaseContext.default;
/**
* The base context of an ability or an application. It allows access to
* application-specific resources.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* The base context of an ability or an application. It allows access to
* application-specific resources.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @since 10
*/
/**
* The base context of an ability or an application. It allows access to
* application-specific resources.
*
* @typedef { _Context.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @atomicservice
* @since 11
*/
export type Context = _Context.default;
/**
* The base context of an ability or an application. It allows access to
* application-specific resources.
*
* @typedef { _Context }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
export type Context = _Context;
/**
* The context of an extension. It allows access to extension-specific resources.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* The context of an extension. It allows access to extension-specific resources.
*
* @typedef { _ExtensionContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 11
*/
export type ExtensionContext = _ExtensionContext.default;
/**
* The context of an extension. It allows access to extension-specific resources.
*
* @typedef { _ExtensionContext }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 20
* @arkts 1.2
*/
export type ExtensionContext = _ExtensionContext;
/**
* The context of form extension. It allows access to
* formExtension-specific resources.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* The context of form extension. It allows access to
* formExtension-specific resources.
*
* @typedef { _FormExtensionContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 11
*/
export type FormExtensionContext = _FormExtensionContext.default;
/**
* The context of service extension. It allows access to
* serviceExtension-specific resources.
*
* @typedef { _ServiceExtensionContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 9
*/
export type ServiceExtensionContext = _ServiceExtensionContext.default;
/**
* The context of service extension. It allows access to
* serviceExtension-specific resources.
*
* @typedef { _ServiceExtensionContext }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
* @arkts 1.2
*/
export type ServiceExtensionContext = _ServiceExtensionContext;
/**
* The event center of a context, support the subscription and publication of events.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* The event center of a context, support the subscription and publication of events.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 11
*/
/**
* The event center of a context, support the subscription and publication of events.
*
* @typedef { _EventHub.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @crossplatform
* @atomicservice
* @since 12
*/
export type EventHub = _EventHub.default;
/**
* Defines a PacMap object for storing a series of values.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* Defines a PacMap object for storing a series of values.
*
* @typedef { _PacMap }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @atomicservice
* @since 11
*/
export type PacMap = _PacMap;
/**
* Indicates the result of startAbility.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
/**
* Indicates the result of startAbility.
*
* @typedef { _AbilityResult }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
export type AbilityResult = _AbilityResult;
/**
* Indicates the callback of connection
*
* @typedef { _ConnectOptions }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 9
*/
export type ConnectOptions = _ConnectOptions;
/**
* The context of UI extension. It allows access to
* UIExtension-specific resources.
*
* @typedef { _UIExtensionContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 10
*/
export type UIExtensionContext = _UIExtensionContext.default;
/**
* The context of UI extension. It allows access to
* UIExtension-specific resources.
*
* @typedef { _UIExtensionContext }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 20
* @arkts 1.2
*/
export type UIExtensionContext = _UIExtensionContext;
/**
* The context of auto fill extension. It allows access to
* AutoFillExtension-specific resources.
*
* @typedef { _AutoFillExtensionContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 11
*/
export type AutoFillExtensionContext = _AutoFillExtensionContext.default;
/**
* The function Called when some error occurred except disconnected from UIAbility or UIExtensionAbility
*
* @typedef { _AbilityStartCallback }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 11
*/
export type AbilityStartCallback = _AbilityStartCallback;
/**
* The class of auto startup info.
*
* @typedef { _AutoStartupInfo }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 11
*/
export type AutoStartupInfo = _AutoStartupInfo;
/**
* The class of auto startup callback.
*
* @typedef { _AutoStartupCallback }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 11
*/
export type AutoStartupCallback = _AutoStartupCallback;
/**
* The context of vpn extension. It allows access to
* vpnExtension-specific resources.
* The class of auto startup info.
*
* @typedef { _VpnExtensionContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 11
*/
export type VpnExtensionContext = _VpnExtensionContext.default;
/**
* The context of an embeddable UIAbility.
*
* @typedef { _EmbeddableUIAbilityContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 12
*/
export type EmbeddableUIAbilityContext = _EmbeddableUIAbilityContext.default;
/**
* The context of an photo editor extension ability.
*
* @typedef { _PhotoEditorExtensionContext.default }
* @syscap SystemCapability.Ability.AppExtension.PhotoEditorExtension
* @stagemodelonly
* @since 12
*/
export type PhotoEditorExtensionContext = _PhotoEditorExtensionContext.default;
/**
* The context of a UI service ability.
*
* @typedef { _UIServiceExtensionContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 14
*/
export type UIServiceExtensionContext = _UIServiceExtensionContext.default;
/**
* The UI service proxy.
*
* @typedef { _UIServiceProxy.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 14
*/
export type UIServiceProxy = _UIServiceProxy.default;
/**
* The UI service host proxy.
*
* @typedef { _UIServiceHostProxy.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 14
*/
export type UIServiceHostProxy = _UIServiceHostProxy.default;
/**
* The UI service extension connect callback.
*
* @typedef { _UIServiceExtensionConnectCallback.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @atomicservice
* @since 14
*/
export type UIServiceExtensionConnectCallback = _UIServiceExtensionConnectCallback.default;
/**
* The context of app service extension. It allows access to
* appServiceExtension-specific resources.
*
* @typedef { _AppServiceExtensionContext.default }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 20
*/
export type AppServiceExtensionContext = _AppServiceExtensionContext.default;
}
export default common;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/interface_sdk-js.git
git@gitee.com:openharmony/interface_sdk-js.git
openharmony
interface_sdk-js
interface_sdk-js
master

搜索帮助