Context Menu

📘

Context menu is a floating menu with a list of actions that shows up when you long press on a link.

iOS Android

Configure context menu at runtime

You can enable/disable the context menu at runtime and also select which actions you want to show in the menu.

↔️Median JavaScript Bridge

// enable or disable context menu
median.contextMenu.setEnabled(true | false);

// set menu items
median.contextMenu.setActions(['copyLink']);

Following actions are supported

  • copyLink: Copy the selected link to the device's clipboard
  • openExternal: Open the selected link in the external browser

👍

Developer Demo

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