Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches

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 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:

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

◆ ShowAndGetInput() [2/2]

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

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