diff --git a/api/@ohos.uitest.d.ts b/api/@ohos.uitest.d.ts index f1dd39298200b2ed9d8f34a901bab39cb2ba76e7..91b2499c0c670885d4a55f4911416a409712eea0 100755 --- a/api/@ohos.uitest.d.ts +++ b/api/@ohos.uitest.d.ts @@ -471,6 +471,24 @@ class UiComponent{ * @test */ dragTo(target: UiComponent): Promise; + + /** + * Pinch enlarge this {@link UiComponent} to the target scale. + * @syscap SystemCapability.Test.UiTest + * @param scale the target scale. + * @since 9 + * @test + */ + pinchOut(scale: number): Promise; + + /** + * Pinch shrink this {@link UiComponent} to the target scale. + * @syscap SystemCapability.Test.UiTest + * @param scale the target scale. + * @since 9 + * @test + */ + pinchIn(scale: number): Promise; } /**