mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-04-17 04:30:42 +00:00
!8157 修复应用自启动回调ArkTs编译问题
Merge pull request !8157 from xinking129/fixInterface1205
This commit is contained in:
commit
a9a812d201
20
api/@ohos.app.ability.common.d.ts
vendored
20
api/@ohos.app.ability.common.d.ts
vendored
@ -33,6 +33,8 @@ import { PacMap as _PacMap } from './ability/dataAbilityHelper';
|
||||
import { AbilityResult as _AbilityResult } from './ability/abilityResult';
|
||||
import type { AbilityStartCallback as _AbilityStartCallback } from './application/AbilityStartCallback';
|
||||
import { ConnectOptions as _ConnectOptions } from './ability/connectOptions';
|
||||
import type { AutoStartupCallback as _AutoStartupCallback } from './application/AutoStartupCallback';
|
||||
import type { AutoStartupInfo as _AutoStartupInfo } from './application/AutoStartupInfo';
|
||||
|
||||
/**
|
||||
* This module provides application context classes and common data structures.
|
||||
@ -337,6 +339,24 @@ declare namespace common {
|
||||
* @since 11
|
||||
*/
|
||||
export type AbilityStartCallback = _AbilityStartCallback;
|
||||
|
||||
/**
|
||||
* The class of auto startup info.
|
||||
*
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @StageModelOnly
|
||||
* @since 11
|
||||
*/
|
||||
export type AutoStartupInfo = _AutoStartupInfo;
|
||||
|
||||
/**
|
||||
* The class of auto startup callback.
|
||||
*
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @StageModelOnly
|
||||
* @since 11
|
||||
*/
|
||||
export type AutoStartupCallback = _AutoStartupCallback;
|
||||
}
|
||||
|
||||
export default common;
|
||||
|
22
api/application/ApplicationContext.d.ts
vendored
22
api/application/ApplicationContext.d.ts
vendored
@ -20,8 +20,8 @@ import EnvironmentCallback from '../@ohos.app.ability.EnvironmentCallback';
|
||||
import type ApplicationStateChangeCallback from '../@ohos.app.ability.ApplicationStateChangeCallback';
|
||||
import { ProcessInformation } from './ProcessInformation';
|
||||
import type ConfigurationConstant from '../@ohos.app.ability.ConfigurationConstant';
|
||||
import type { AutoStartupCallback as _AutoStartupCallback } from './AutoStartupCallback';
|
||||
import type { AutoStartupInfo as _AutoStartupInfo } from './AutoStartupInfo';
|
||||
import type AutoStartupCallback from './AutoStartupCallback';
|
||||
import type AutoStartupInfo from './AutoStartupInfo';
|
||||
|
||||
/**
|
||||
* The context of an application. It allows access to application-specific resources.
|
||||
@ -542,21 +542,3 @@ export default class ApplicationContext extends Context {
|
||||
*/
|
||||
isAutoStartup(info: AutoStartupInfo): Promise<boolean>;
|
||||
}
|
||||
|
||||
/**
|
||||
* The class of auto startup info.
|
||||
*
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @StageModelOnly
|
||||
* @since 11
|
||||
*/
|
||||
export type AutoStartupInfo = _AutoStartupInfo;
|
||||
|
||||
/**
|
||||
* The class of auto startup callback.
|
||||
*
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @StageModelOnly
|
||||
* @since 11
|
||||
*/
|
||||
export type AutoStartupCallback = _AutoStartupCallback;
|
||||
|
Loading…
x
Reference in New Issue
Block a user