diff --git a/api/@ohos.arkui.UIContext.d.ts b/api/@ohos.arkui.UIContext.d.ts index 9d65406671d9e58da81b472c842c4dd92fa4780c..3f13a070c8d984ff80b62eff9df26a1fcaa581ca 100755 --- a/api/@ohos.arkui.UIContext.d.ts +++ b/api/@ohos.arkui.UIContext.d.ts @@ -3447,7 +3447,19 @@ export declare class ComponentSnapshot { * @since 11 */ export class UIContext { - /** + + /** + * Get id of the UI instance. + * + * @returns { number } Returns id of the UI instance. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ + getId(): number; + + /** * Checks whether the UiContext object ia available. * * @returns { boolean } Returns true if the UIConetxt object is available. diff --git a/api/@ohos.arkui.UIContext.static.d.ets b/api/@ohos.arkui.UIContext.static.d.ets index 5b07f38ef099391f34701fc1f553b6fe4754a074..e269cf07d8e9946f97c96e9b5ac02d0dee21f74e 100755 --- a/api/@ohos.arkui.UIContext.static.d.ets +++ b/api/@ohos.arkui.UIContext.static.d.ets @@ -2458,6 +2458,16 @@ export declare class ComponentSnapshot { * @since 20 */ export declare class UIContext { + + /** + * Get id of the UI instance. + * + * @returns { number } Returns id of the UI instance. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 22 + */ + getId(): int; + /** * get object font. *