Docs (4.0.0)
class GlobalContext method

showDialog

Displays a modal dialog with the specified content view.

showDialog(view?: View): void

Notes

  • The dialog will be displayed until the view is unlinked. View events are not handled, so add a listener separately if the view is not already attached to an activity.
  • The same view cannot be shown twice. A second call with the same view will be ignored.

Parameters

  • view — The view object to be displayed within a modal dialog

Errors

  • This method throws an error if the theme modal dialog controller can’t be initialized (i.e. there’s no current theme, or the theme doesn’t support modal dialog views).

Related