Class: Toybox.WatchUi.Confirmation

Overview

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.

See Also:

Note:

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

Example:

using Toybox.WatchUi;

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

Since:

API Level 1.0.0

Instance Method Summary collapse

Instance Method Details

initialize(message as Lang.String)

Constructor

Parameters:

  • message(Lang.String)

    The confirmation message to display in the confirmation dialog

Since:

API Level 1.0.0


Generated Sep 23, 2024, 3:32:49 PM