Native Gestures and Interactions

Enable Swipe, Zoom, and Refresh Gestures

Enhance your app's user experience by enabling native interaction gestures. Median.co allows you to integrate swipe-based navigation, pinch-to-zoom capabilities, and pull-to-refresh functionality, ensuring your app feels fluid and behaves like a native mobile application.

👍

Developer Demo

Display our demo page in your app to test during development https://median.dev/swipe-gestures/

Implementation Guide

Swipe Navigation

Enable swipe gestures to allow users to navigate backward and forward through their browsing history using simple horizontal swipes.

📘

Android Behavior

On Android devices, visual arrow indicators appear on the screen to provide feedback when a previous or next page is available in the history stack.

Managing Swipe Gestures via JavaScript Bridge

You can toggle swipe gestures at runtime to dynamically enable or disable navigation based on your app’s current state or specific view requirements.

Enable Swipe Gestures

↔️Median JavaScript Bridge

median.android.swipeGestures.enable();

Disable Swipe Gestures

↔️Median JavaScript Bridge

median.android.swipeGestures.disable();

Pinch-To-Zoom

The pinch-to-zoom feature allows users to use two fingers to interactively zoom in and out of content within your app.

  • Default State: This feature is disabled by default.
  • Use Case: Enable this if your content (such as product images, maps, or data-dense pages) requires fine-grained zooming control.

Pull-to-Refresh

Pull-to-refresh provides a standard mobile gesture for reloading the current page by swiping down from the top of the screen.

Cross-Platform Support: This functionality can be configured independently for both iOS and Android platforms to suit the specific UI/UX requirements of your project.