mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 17:31:12 +00:00
add RootScene, Screen and WindowScene
Signed-off-by: qpzeng <zengqingpeng6@huawei.com> Change-Id: Iaf345cb3836de3a88701819424b7669c4752a8f1
This commit is contained in:
parent
e6af25621b
commit
ab8bccb2c0
3
api/@internal/component/ets/index-full.d.ts
vendored
3
api/@internal/component/ets/index-full.d.ts
vendored
@ -77,8 +77,10 @@
|
||||
/// <reference path="./refresh.d.ts" />
|
||||
/// <reference path="./relative_container.d.ts" />
|
||||
/// <reference path="./rich_text.d.ts" />
|
||||
/// <reference path="./root_scene.d.ts" />
|
||||
/// <reference path="./row.d.ts" />
|
||||
/// <reference path="./row_split.d.ts" />
|
||||
/// <reference path="./screen.d.ts" />
|
||||
/// <reference path="./scroll.d.ts" />
|
||||
/// <reference path="./scroll_bar.d.ts" />
|
||||
/// <reference path="./search.d.ts" />
|
||||
@ -104,6 +106,7 @@
|
||||
/// <reference path="./units.d.ts" />
|
||||
/// <reference path="./video.d.ts" />
|
||||
/// <reference path="./web.d.ts" />
|
||||
/// <reference path="./window_scene.d.ts" />
|
||||
/// <reference path="./sec_location_button.d.ts" />
|
||||
/// <reference path="./xcomponent.d.ts" />
|
||||
/// <reference path="./sidebar.d.ts" />
|
||||
|
66
api/@internal/component/ets/root_scene.d.ts
vendored
Normal file
66
api/@internal/component/ets/root_scene.d.ts
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (c) 2023 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Defines the session of RootScene.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
interface RootSceneSession {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the interface of RootScene.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
interface RootSceneInterface {
|
||||
/**
|
||||
* Called when the RootScene is used.
|
||||
* @param { RootSceneSession } session - indicates the session of RootScene.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @returns { RootSceneAttribute }
|
||||
* @since 10
|
||||
*/
|
||||
(session: RootSceneSession): RootSceneAttribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the attribute functions of RootScene.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
declare class RootSceneAttribute extends CommonMethod<RootSceneAttribute> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the RootScene component.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
declare const RootScene: RootSceneInterface;
|
||||
|
||||
/**
|
||||
* Defines the RootScene instance.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
declare const RootSceneInstance: RootSceneAttribute;
|
57
api/@internal/component/ets/screen.d.ts
vendored
Normal file
57
api/@internal/component/ets/screen.d.ts
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2023 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Defines the interface of Screen.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
interface ScreenInterface {
|
||||
/**
|
||||
* Called when the Screen is used.
|
||||
* @param { number } screenId - indicates the identifier of a screen.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @returns { ScreenAttribute }
|
||||
* @since 10
|
||||
*/
|
||||
(screenId: number): ScreenAttribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the attribute functions of Screen.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
declare class ScreenAttribute extends CommonMethod<ScreenAttribute> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the Screen component.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
declare const Screen: ScreenInterface;
|
||||
|
||||
/**
|
||||
* Defines the Screen instance.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
declare const ScreenInstance: ScreenAttribute;
|
57
api/@internal/component/ets/window_scene.d.ts
vendored
Normal file
57
api/@internal/component/ets/window_scene.d.ts
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2023 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Defines the interface of WindowScene.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
interface WindowSceneInterface {
|
||||
/**
|
||||
* Called when the WindowScene is used.
|
||||
* @param { number } persistentId - indicates the persistent identifier of WindowScene.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @returns { WindowSceneAttribute }
|
||||
* @since 10
|
||||
*/
|
||||
(persistentId: number): WindowSceneAttribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the attribute functions of WindowScene.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
declare class WindowSceneAttribute extends CommonMethod<WindowSceneAttribute> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the WindowScene component.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
declare const WindowScene: WindowSceneInterface;
|
||||
|
||||
/**
|
||||
* Defines the WindowScene instance.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
declare const WindowSceneInstance: WindowSceneAttribute;
|
@ -17,7 +17,10 @@
|
||||
"form_component.d.ts",
|
||||
"plugin_component.d.ts",
|
||||
"remote_window.d.ts",
|
||||
"ui_extension_component.d.ts"
|
||||
"root_scene.d.ts",
|
||||
"screen.d.ts",
|
||||
"ui_extension_component.d.ts",
|
||||
"window_scene.d.ts"
|
||||
]
|
||||
},
|
||||
"internal_lite": {
|
||||
|
Loading…
Reference in New Issue
Block a user