Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

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. More...

Namespaces

namespace  kodi::gui::dialogs::OK
 

Functions

void ATTR_DLL_LOCAL 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.
 
void ATTR_DLL_LOCAL 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.
 

Detailed Description

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 ATTR_DLL_LOCAL 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 ATTR_DLL_LOCAL 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");