Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.

\cpp_namespace{ kodi::gui::dialogs::OK } OK dialog More...

Namespaces

namespace  kodi::gui::dialogs::OK
 

Functions

void kodi::gui::dialogs::OK::ShowAndGetInput (const std::string &heading, const std::string &text)
 Use dialog to inform user with text and confirmation with OK with continued string. More...
 
void kodi::gui::dialogs::OK::ShowAndGetInput (const std::string &heading, const std::string &line0, const std::string &line1, const std::string &line2)
 Use dialog to inform user with text and confirmation with OK with strings separated to the lines. More...
 

Detailed Description

\cpp_namespace{ kodi::gui::dialogs::OK } OK dialog

The functions listed below permit the call of a dialogue of information, a confirmation of the user by press from OK required.

It has the header #include <kodi/gui/dialogs/OK.h> be included to enjoy it.

Function Documentation

◆ ShowAndGetInput() [1/2]

void kodi::gui::dialogs::OK::ShowAndGetInput ( const std::string &  heading,
const std::string &  line0,
const std::string &  line1,
const std::string &  line2 
)
inline

Use dialog to inform user with text and confirmation with OK with strings separated to the lines.

Parameters
[in]headingDialog heading.
[in]line0Line #1 text.
[in]line1Line #2 text.
[in]line2Line #3 text.

Example:

...
kodi::gui::dialogs::OK::ShowAndGetInput("Test dialog", "Hello World!", "I'm a call from add-on", " :) :D");

◆ ShowAndGetInput() [2/2]

void kodi::gui::dialogs::OK::ShowAndGetInput ( const std::string &  heading,
const std::string &  text 
)
inline

Use dialog to inform user with text and confirmation with OK with continued string.

Parameters
[in]headingDialog heading.
[in]textMulti-line text.

Example:

...
kodi::gui::dialogs::OK::ShowAndGetInput("Test dialog", "Hello World!\nI'm a call from add-on\n :) :D");