update dialogRequest

Signed-off-by: xieqiongyang <xieqiongyang@huawei.com>
Change-Id: I855c76a194d23cb596cd247cd7286a1431e36ab0
This commit is contained in:
xieqiongyang 2023-07-06 01:08:51 +00:00
parent f40dec50be
commit 4783b9db2c

View File

@ -23,6 +23,55 @@ import Want from './@ohos.app.ability.Want';
* @since 9
*/
declare namespace dialogRequest {
/**
* Window Rectangle
*
* @typedef WindowRect
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @StageModelOnly
* @since 10
*/
export interface WindowRect {
/**
* The left position of WindowRect
*
* @type { number }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @StageModelOnly
* @since 10
*/
left: number;
/**
* The top position of WindowRect
*
* @type { number }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @StageModelOnly
* @since 10
*/
top: number;
/**
* The width of WindowRect
*
* @type { number }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @StageModelOnly
* @since 10
*/
width: number;
/**
* The height of WindowRect
*
* @type { number }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @StageModelOnly
* @since 10
*/
height: number;
}
/**
* Request info of a request.
*
@ -30,7 +79,17 @@ declare namespace dialogRequest {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 9
*/
export interface RequestInfo {}
export interface RequestInfo {
/**
* The Window of caller.
*
* @type { ?WindowRect }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @StageModelOnly
* @since 10
*/
windowRect?: WindowRect
}
/**
* The modal bullet box requests the result code.