diff --git a/api/arkui/stateManagement/storage/appStorage.static.d.ets b/api/arkui/stateManagement/storage/appStorage.static.d.ets index 52e2ad08fc6c4aa558b0845e9ddef9f0ea81712e..f1f557de53241b6e59e9f3e547556ba5453c878a 100644 --- a/api/arkui/stateManagement/storage/appStorage.static.d.ets +++ b/api/arkui/stateManagement/storage/appStorage.static.d.ets @@ -22,10 +22,10 @@ import { LocalStorage } from './localStorage'; /** -AppStorage singleton is sub-class of see LocalStorage for -UI state of app-wide access and same life cycle as the app. -@type { LocalStorage } -@syscap SystemCapability.ArkUI.ArkUI.Full -@since 20 -*/ + * AppStorage singleton is sub-class of see LocalStorage for + * UI state of app-wide access and same life cycle as the app. + * @type { LocalStorage } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ export declare const AppStorage: LocalStorage; diff --git a/api/arkui/stateManagement/storage/storageProperty.static.d.ets b/api/arkui/stateManagement/storage/storageProperty.static.d.ets index bbff562c819aac7921869e9515ba299f7c728abb..12f2c08f2c5bbf1a224a39dda3c40deca43dcfe0 100644 --- a/api/arkui/stateManagement/storage/storageProperty.static.d.ets +++ b/api/arkui/stateManagement/storage/storageProperty.static.d.ets @@ -1,4 +1,4 @@ -'use static' + /* * Copyright (C) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + /** * @file * @kit ArkUI @@ -22,8 +23,8 @@ /** * Defines the callback that is called when state variable with value is change * @typedef { function } OnChangeType - * @param {string} propertyName - property name - * @param {T} newValue - the new value of state variable + * @param { string } propertyName - property name + * @param { T } newValue - the new value of state variable * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -49,7 +50,7 @@ export interface AbstractProperty { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - info(): string { return ""; }; + info(): string { return ""; }; /** * Reads value of the referenced AppStorage/LocalStorage property. @@ -58,7 +59,7 @@ export interface AbstractProperty { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get(): T; + get(): T; /** * Assign a new value to the referenced property @@ -67,7 +68,7 @@ export interface AbstractProperty { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set(newValue: T): void {}; + set(newValue: T): void {}; /** * Register callback function to be called on value change of the referenced property * calling with value undefined clear the callback. @@ -76,11 +77,11 @@ export interface AbstractProperty { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onChange(onChangeFunc: OnChangeType | undefined): void {}; + onChange(onChangeFunc: OnChangeType | undefined): void {}; } /** - * SubscribedAbstractProperty is the return value of + * SubscribedAbstractProperty is the return value of * - AppStorage static functions Link(), Prop(), SetAndLink(), and SetAndProp() * - LocalStorage member methods link(), prop(), setAndLink(), and setAndProp() * 'T' can be boolean, string, number or custom class. @@ -107,4 +108,62 @@ export interface SubscribedAbstractProperty extends AbstractProperty { * @since 20 */ aboutToBeDeleted(): void {}; +} + +/** + * Defines the ColorMode of device. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare enum ColorMode { + /** + * Light mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + LIGHT = 0, + + /** + * Dark mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + DARK = 1 +} + +/** + * Defines the LayoutDirection of device. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare enum LayoutDirection { + /** + * Elements are laid out from left to right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + LTR = 0, + + /** + * Elements are laid out from right to left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + RTL = 1, + + /** + * Elements are laid out from auto. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + Auto = 2 } \ No newline at end of file