From 3c11407ea69051cd1d3b4965a19ff528959c7d21 Mon Sep 17 00:00:00 2001 From: wzztoone Date: Sat, 28 May 2022 15:24:29 +0800 Subject: [PATCH] add shareOption Signed-off-by: wzztoone Change-Id: Ie226c0eca798a8a2f18c2e493d7c5fc3aca1c03a --- api/@internal/component/ets/text.d.ts | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/api/@internal/component/ets/text.d.ts b/api/@internal/component/ets/text.d.ts index aa258e5c47..0de4233c35 100644 --- a/api/@internal/component/ets/text.d.ts +++ b/api/@internal/component/ets/text.d.ts @@ -25,6 +25,28 @@ interface TextInterface { (content?: string | Resource): TextAttribute; } +/** + * Indicates the share option. + * + * @since 9 + */ +declare enum CopyOption { + /** + * Share in app. + */ + InApp = 0, + + /** + * Share in local device. + */ + LocalDevice = 1, + + /** + * Share cross device. + */ + CrossDevice = 2, +} + /** * @since 7 */ @@ -118,6 +140,12 @@ declare class TextAttribute extends CommonMethod { * @since 7 */ baselineOffset(value: number | string): TextAttribute; + + /** + * Allow replication. + * @since 9 + */ + copyOption(value: boolean | CopyOption): TextAttribute; } declare const TextInstance: TextAttribute; -- Gitee