API Docs for: 0.1
Show:

Result Class

The attributes of a result returned by a Scope The Result API provides convenience methods for some typical attributes (title, art), but scopes are free to add and use any custom attributes with set/get methods. The only required attribute is 'uri' and it must not be empty before calling Reply.push().

Methods

art

() String

Get the "art" property of this Result

Returns:

String:

contains

() Boolean

Check if this Result has an attribute

Returns:

Boolean:

direct_activation

() Boolean

Check if this result should be activated directly by the shell because the scope doesn't handle activation of this result

Returns:

Boolean:

dnd_uri

() String

Get the "dnd_uri" property of this Result

Returns:

String:

get

(
  • key
)
String

Get the value of an attribute

Parameters:

  • key String

Returns:

String:

, {Number} or {Object}

has_stored_result

() Boolean

Check if this Result instance has a stored result

Returns:

Boolean:

set

(
  • key
  • value
)

Set the value of an attribute

Parameters:

  • key String
  • value String

set_art

(
  • art
)

Set the "art" attribute of this result.

Parameters:

  • art String

set_dnd_uri

(
  • dnd_uri
)

Set the "dnd_uri" attribute of this result.

Parameters:

  • dnd_uri String

set_intercept_activation

()

Indicates to the receiver that this scope should intercept activation requests for this result

set_title

(
  • title
)

Set the "title" attribute of this result.

Parameters:

  • title String

set_uri

(
  • uri
)

Set the "uri" attribute of this result.

Parameters:

  • uri String

title

() String

Get the "title" property of this Result

Returns:

String:

uri

() String

Get the "uri" property of this Result

Returns:

String:

value

(
  • value
)
Dictonary

Get the value of an attribute

Parameters:

  • value String

Returns:

Dictonary: