API Docs for: 0.0.6
Show:

Dalek.DriverNative.Commands.Execute Class

Module: Driver

Execute related methods

Methods

_setEvaluateCb

(
  • script
  • args
  • hash
  • result
)
Object private

Sends out an event with the results of the execute call

Parameters:

  • script Function

    Script to execute

  • args Array

    Arguments to pass to the function

  • hash String

    Unique hash of that fn call

  • result String

    Serialized JSON with the results of the call

Returns:

Object:

promise Exists promise

_setExecuteCb

(
  • script
  • args
  • hash
  • result
)
Object private

Sends out an event with the results of the execute call

Parameters:

  • script Function

    Script to execute

  • args Array

    Arguments to pass to the function

  • hash String

    Unique hash of that fn call

  • result String

    Serialized JSON with the results of the call

Returns:

Object:

promise Exists promise

_setExecuteCb

(
  • script
  • args
  • timeout
  • hash
  • data
)
Object private

Sends out an event with the results of the waitFor call

Parameters:

  • script Function

    Script to execute

  • args Array

    Arguments to pass to the function

  • timeout Integer

    Timeout of the function

  • hash String

    Unique hash of that fn call

  • data String

    Serialized JSON with the reuslts of the toFrame call

Returns:

Object:

Promise

execute

(
  • script
  • args
  • hash
)
chainable

Executes a JavaScript function

Parameters:

  • script Function

    Script to execute

  • args Array

    Arguments to pass to the function

  • hash String

    Unique hash of that fn call

execute

(
  • script
  • args
  • hash
)
chainable

Executes a JavaScript function

Parameters:

  • script Function

    Script to execute

  • args Array

    Arguments to pass to the function

  • hash String

    Unique hash of that fn call

execute

(
  • script
  • args
  • timeout
  • hash
)
chainable

Executes a JavaScript function until the timeout rans out or the function returns true

Parameters:

  • script Function

    Script to execute

  • args Array

    Arguments to pass to the function

  • timeout Integer

    Timeout of the function

  • hash String

    Unique hash of that fn call