From 9f6f8956e7b4ff3a37f751dbb63bc5203e137439 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Wed, 18 Jun 2025 14:19:52 +0800 Subject: [PATCH] context area get/set Signed-off-by: zhangzezhong --- api/application/Context.d.ts | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/api/application/Context.d.ts b/api/application/Context.d.ts index 466e568d50..fc0760120b 100644 --- a/api/application/Context.d.ts +++ b/api/application/Context.d.ts @@ -384,11 +384,34 @@ declare class Context extends BaseContext { * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ area: contextConstant.AreaMode; + /** + * Get file area. + * + * @return { contextConstant.AreaMode } + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @stagemodelonly + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + get area(): contextConstant.AreaMode; + + /** + * Set file area. + * + * @param { contextConstant.AreaMode } + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @stagemodelonly + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + set area(mode: contextConstant.AreaMode); + /** * Indicates process name. * -- Gitee