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
- Creates a Pinch Out task.
- Performs a pinch-out gesture.
- Waits until the gesture completes.
- 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.