Skip to main content

Pinch Out

The Pinch Out action performs a pinch-out gesture from the centre of the screen towards the outer edges. This gesture is commonly used to zoom in on maps, images, documents, and other zoomable content.

When to Use

Use this action when you want to:

  • Zoom into an image.
  • Increase the map zoom level.
  • Magnify document content.
  • Enlarge application content.

Syntax

var task = suremdmjs.automate().pinchOut();

suremdmjs.automate().performAction(
task,
"onSuccess",
"onFailure"
);

Parameters

This action does not require any parameters.

Example

!#suremdmjs

var task = suremdmjs.automate().pinchOut();

suremdmjs.automate().performAction(
task,
"zoomInCompleted",
"zoomInFailed"
);

How This Example Works

  1. Creates a Pinch Out task.
  2. Performs a pinch-out gesture.
  3. Waits until the gesture completes.
  4. Executes the success callback.

Expected Result

The displayed content is enlarged by zooming in.

note

If the application does not support pinch gestures, no zoom action will occur.

💬 Help us improve this documentation

Was this information useful?

Your feedback helps us keep our documentation accurate, up to date, and useful.