Skip to content
Enact

webos/LS2Request

Provides a class for making LS2 service requests on webOS platforms.

A class for managing LS2 Requests.

Constructor

Create a new LS2 request

Methods
undefined

Cancel the current LS2 request.

0 Params
Returns
undefined

webos/LS2Request

Send a request to an LS2 service method.

1 Param
optionsObject

Options for the LS2 Request call

Object keys for options
serviceString

The name of the LS2 service.

methodString

The name of the method.

parametersObject

Any parameters required by the service method.

onSuccessFunction

The success handler for the request.

onFailureFunction

The failure handler for the request.

onCompleteFunction

The handler to run when the request is completed, regardless of return status.

onTimeoutFunction

The handler to run when the request times out. Used in conjunction with timeout.

subscribeBoolean

Subscribe to service methods that support subscription.

timeoutNumber

The delay in milliseconds to wait for the request to return.

Returns
webos/LS2Requestwebos/LS2Request