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);
};

Inherited Members

public:
    // enums

    enum Result;

    // fields

     secondaryText;
    SecondaryText secondButton;
    SecondaryText SecondButton secondResult;

    // methods

    PROPERTY_CSTRING_BUFFER(GraphicsRenderer::kMaxMultilineStringLength, text, Text);
    SecondaryText PROPERTY_CSTRING_BUFFER(32, firstButton, FirstButton);
    SecondaryText SecondButton PROPERTY_VARIABLE(int, firstResult, FirstResult);