Class: Toybox::WatchUi::Confirmation

Inherits:
Lang::Object show all

Overview

Note:

The look and feel of a confirmation dialog is device-specific.

A representation of a confirmation dialog.

A Confirmation is a special View that presents the user with a yes/no question. After an option is selected, the registered onResponse() method will be called. A Confirmation is pushed using pushView(), which provides a ConfirmationDelegate as the input delegate.

Examples:

using Toybox.WatchUi;

var message = "Continue?";
dialog = new WatchUi.Confirmation(message);
WatchUi.pushView(
    dialog,
    new ConfirmationDelegate(),
    WatchUi.SLIDE_IMMEDIATE
);

See Also:

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initialize(message) ⇒ Confirmation

Returns a new instance of Confirmation

Parameters:

Since:

  • 1.0.0


14953
14954
# File 'Monkeybrains.rb', line 14953

def initialize(message)
end