Swipe Gestures

Add swipe gesture support to your Median app to allow users to navigate backward and forward through their browsing history using simple swipe motions. This feature enhances navigation fluidity and mimics native app behavior.

On Android devices, visual arrow indicators appear on the screen to let users know when a previous or next page is available.

👍

Developer Demo

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

Implementation Guide

Swipe gestures can be toggled at runtime using the Median JavaScript Bridge. This is useful for dynamically enabling or disabling gesture-based navigation based on specific app states or views.

Enable Enable Swipe Gestures

To enable/disable Swipe Gestures on runtime, run the following command:

↔️Median JavaScript Bridge

median.android.swipeGestures.enable();

Disable Swipe Gestures

↔️Median JavaScript Bridge

median.android.swipeGestures.disable();