class Core::Portable::AlertBox
#include <corealertbox.h>
class AlertBox: public Core::Portable::AlertDescription
{
public:
// methods
static void setRootView(RootView* rootView);
static CStringPtr getButtonTitle(int result);
static void showOk(
CStringPtr text,
CStringPtr secondaryText,
AlertID id = 0,
IAlertCompletionHandler* handler = nullptr
);
static void showOkCancel(
CStringPtr text,
CStringPtr secondaryText,
AlertID id = 0,
IAlertCompletionHandler* handler = nullptr
);
static void showYesNo(
CStringPtr text,
CStringPtr secondaryText,
AlertID id = 0,
IAlertCompletionHandler* handler = nullptr
);
void initButtons(int firstResult, int secondResult = kUndefined);
void runAsync(AlertID id = 0, IAlertCompletionHandler* handler = nullptr);
};