Molybden API
Loading...
Searching...
No Matches
molybden::MessageDialog Class Reference

Allow displaying the native message dialogs. More...

#include <dialogs.hpp>

Static Public Member Functions

static void show (const std::shared_ptr< App > &app, const MessageDialogOptions &options, const std::function< void(MessageDialogResult)> &callback)
 Shows an application message dialog with the given options.
 
static void show (const std::shared_ptr< Browser > &browser, const MessageDialogOptions &options, const std::function< void(MessageDialogResult)> &callback)
 Shows a browser modal message dialog with the given options.
 

Detailed Description

Allow displaying the native message dialogs.

Member Function Documentation

◆ show() [1/2]

static void molybden::MessageDialog::show ( const std::shared_ptr< App > &  app,
const MessageDialogOptions options,
const std::function< void(MessageDialogResult)> &  callback 
)
static

Shows an application message dialog with the given options.

Parameters
appthe application instance.
optionsthe options of the message dialog.
callbackthe callback to be invoked when the dialog is closed.

◆ show() [2/2]

static void molybden::MessageDialog::show ( const std::shared_ptr< Browser > &  browser,
const MessageDialogOptions options,
const std::function< void(MessageDialogResult)> &  callback 
)
static

Shows a browser modal message dialog with the given options.

Parameters
browserthe browser instance.
optionsthe options of the message dialog.
callbackthe callback to be invoked when the dialog is closed.

The documentation for this class was generated from the following file: