Class: Toybox::WatchUi::ConfirmationDelegate

Inherits:
Lang::Object show all

Overview

ConfirmationDelegate responds to a Confirmation selection.

Examples:

using Toybox.WatchUi;
using Toybox.System;

class MyConfirmationDelegate extends WatchUi.ConfirmationDelegate {
    function initialize() {
        ConfirmationDelegate.initialize();
    }

    function onResponse(response) {
        if (response == 0) {
            System.println("Cancel");
        } else {
            System.println("Confirm");
        }
    }
}

See Also:

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Method Details

onResponse(response) ⇒ Object

A confirmation selection was made.

This method is called when a Confirmation response is selected, and receives the response as an argument. The response is either a CONFIRM_NO or CONFIRM_YES value.

Parameters:

See Also:

Since:

  • 1.0.0


13618
13619
# File 'Monkeybrains.rb', line 13618

def onResponse(response)
end