getView

abstract fun getView(url: Uri, context: Context, onClick: () -> Unit): View

Returns a menu section view.

Parameters

url

the URL of the page the menu was opened on.

context

an Activity context suitable for inflating views and showing dialogs.

onClick

invoked by the view after the user taps the item, so the host can perform any standard actions (e.g. firing the menu-used pixel and dismissing the menu).