Class: $.WebRequestDelegate

Inherits:
WatchUi.BehaviorDelegate show all

Overview

Creates a web request on menu / select events

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _notify as Lang.Method(args as Lang.Dictionary or Lang.String or Null) as Void

Instance Method Details

initialize(handler as Lang.Method(args as Lang.Dictionary or Lang.String or Null) as Void)

Set up the callback to the view

Parameters:

  • handler —

    Callback method for when data is received

makeRequest() as Void

Make the web request

onMenu() as Lang.Boolean

On a menu event, make a web request

Returns:

  • true if handled, false otherwise

onReceive(responseCode as Lang.Number, data as Lang.Dictionary or Lang.String or Null) as Void

Receive the data from the web request

Parameters:

  • responseCode —

    The server response code

  • data —

    Content from a successful request

onSelect() as Lang.Boolean

On a select event, make a web request

Returns:

  • true if handled, false otherwise


Generated Oct 20, 2026, 8:21:11 AM