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().
Item Index
Methods
art
()
String
Get the "art" property of this Result
Returns:
contains
()
Boolean
Check if this Result has an attribute
Returns:
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:
dnd_uri
()
String
Get the "dnd_uri" property of this Result
Returns:
get
-
key
Get the value of an attribute
Parameters:
-
key
String
Returns:
, {Number} or {Object}
has_stored_result
()
Boolean
Check if this Result instance has a stored result
Returns:
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:
uri
()
String
Get the "uri" property of this Result
Returns:
value
-
value
Get the value of an attribute
Parameters:
-
value
String