diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 6915951ed1bfd95b9d1511f35fddf1f2a8b51de3..fe07794b758c6f63d1d6927a30e76de3a8f15942 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -30588,6 +30588,16 @@ declare class CommonMethod { */ onAccessibilityActionIntercept(callback: AccessibilityActionInterceptCallback): T; + /** + * Set whether the component enables the ability to invert colors. + * This interface needs to be set as the first attribute of the component. + * @param { boolean } value - value indicates whether the component enables the ability to invert colors. + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 21 + */ + allowForceDark(value: boolean): T; } /**