Swipe Gestures

📘

Add swipe gestures to your app to enable swiping to go back and forward in the navigation history. On Android, arrow indicators will show on the screen to indicate when there is a page available to go back to or to go forward to.

👍

Developer Demo

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

Enable/Disable Swipe Gestures on runtime

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

↔️Median JavaScript Bridge

// enable swipe gestures
median.android.swipeGestures.enable();

// disable swipe gestures
median.android.swipeGestures.disable();