com.palm.service.tellurium

Note
This API has been available since API level 24.

API Summary

Intended for interacting with web applications

Overview of the API

Overall algorithm of using the tellurium is the following:

  1. Web application is loaded, WAM2 loads telluriumnub.js
  2. TelluriumNub (TN) sends subscription message to telluriumd (TD), providing all information about application - id, resolution, etc
  3. TD receives message, and assigns stageId (integer number) to this message (these relations are stored in gMsgMap)
  4. When Pytell (PT) is requested to interact with some application, it sends message to TD, receiving all existing stages. If requested application's stage is not presented, application is launched using SAM API
  5. Having stageId, PT sends commands to TD, TD proxies these commands to TN and back
  6. When application is closed, LS2 notifies TD about subscription being cancelled. TD removes all stages associated with cancelled subscription (cancelFunction())

Methods

broadcastCommand

ACG: testautomation.operation
  • Added: API level 24

Description

Sends message to all TelluriomNub instances

Parameters

Name

Required

Type

Description

commandOptionalString

Command to broadcast.

Call Returns

Name

Required

Type

Description

returnValueRequiredBoolean

Always returns true.

Example

Example : Command parameter specified

# luna-send -n 1 -f luna://com.palm.service.tellurium/broadcastCommand '{"command": "test"}'

Response:

{
    "returnValue": true
}

Example : Empty command parameter

# luna-send -n 1 -f luna://com.palm.service.tellurium/broadcastCommand '{"command": ""}'

Response:

{
    "returnValue": true
}

Example : No command parameter

# luna-send -n 1 -f luna://com.palm.service.tellurium/broadcastCommand '{}'

Response:

{
    "returnValue": true
}

handleRequest

ACG: testautomation.operation
  • Added: API level 24

Description

handleRequest allows to process requested method

Available methods are:

  • getRunningAppsAndStages: returns applications and their stageId
  • getApplicationInformation: returns information for the selected application
  • getItems: returns objects for the selected application

Parameters

Name

Required

Type

Description

commandRequiredString

JSON describing the command to be executed and its parameters. Specify one of the following methods:

  • getRunningAppsAndStages: Returns applications and their stageId
  • getApplicationInformation: Returns information for the selected application
  • getItems: Returns objects for the selected application
stageIdRequiredNumber

Stage ID.

Note:

  • An integer that is dynamically assigned to a loaded application by telluriumd service.
  • Not mandatory when command parameter value is "getRunningAppsAndStages" as stageID for each running application is known through this API method.
queueOptionalObject array: queue

Contains the command to execute to get the element information [optionally an additional parameter "filter" is used to extract the required content from object hierarchy]. For more details refer 'queue object' under Objects section.

Call Returns

Name

Required

Type

Description

returnValueRequiredBoolean

Indicates whether the execution succeeded.

  • true: Success
  • false: Failure
resultOptionalObject: getRunningAppsAndStagesResult

Result obtained when "command" parameter is "getRunningAppsAndStages".

Note: Either one of the "result" parameters is returned based on the command parameter.

resultOptionalObject: getApplicationInformationResult

Result obtained when "command" parameter is "getApplicationInformation".

Note: Either one of the "result" parameters is returned based on the command parameter.

resultRequiredObject: getItemsResult

Result obtained when "command" parameter is "getItems".

Note: Either one of the "result" parameters is returned based on the command parameter.

errorCodeOptionalNumber

Identifies the error. The method will return errorCode only if it fails. See the Error Codes Reference for more details.

errorTextOptionalString

Describes the error. The method will return errorText only if it fails. See the Error Codes Reference for more details.

teCommandIdOptionalNumber

An integer assigned by telluriumD service when the given command is not in mapped list and its redirected to stage.

Example

Example : Command is getRunningAppsAndStages

# luna-send -n 1 -f luna://com.palm.service.tellurium/handleRequest '{"command": "getRunningAppsAndStages"}'

Response:

{
    "result":[
        {
            "appId":"MaliitServer",
            "stages":[
                {
                    "width":0,
                    "id":1002,
                    "isActive":false,
                    "scene":"",
                    "height":0,
                    "type":"",
                    "name":""
                }
            ]
        },
        {
            "appId":"com.webos.app.inputcommon",
            "stages":[
                {
                    "width":0,
                    "id":1001,
                    "isActive":false,
                    "scene":"",
                    "height":0,
                    "type":"",
                    "name":""
                }
            ]
        },
        {
            "appId":"surface-manager-starfish",
            "stages":[
                {
                    "width":0,
                    "id":1000,
                    "isActive":false,
                    "scene":"",
                    "height":0,
                    "type":"",
                    "name":""
                }
            ]
        }
    ],
    "returnValue":true
}

Example : Command is getApplicationInformation

# luna-send -n 1 -f luna://com.palm.service.tellurium/handleRequest '{"command": "getApplicationInformation", "stageId": 1000}'

Response:

{
    "result": {
        "resolution": {
            "width": 1920,
            "height": 1080
        },
        "displayId": -1,
        "pid": 1940,
        "isQmlApplication": true,
        "id": "surface-manager"
    },
    "returnValue": true,
    "teCommandId": 5
}

Example : Command is getItems

# luna-send -n 1 -f luna://com.palm.service.tellurium/handleRequest '{"command": "getItems", "stageId": 1000}'

Response:

{
    "result":[
        {
            "objectIdHierarchy":"10875168",
            "classHierarchy":"QQuickRootItem",
            "class_name":"QQuickRootItem",
            "mapped_lefttop_x":0,
            "window":{
                "id":"11266048",
                "width":1920,
                "isVisible":true,
                "activeFocusItem":"26405216",
                "y":0,
                "x":0,
                "isActive":true,
                "title":"LunaSurfaceManager - Goldfinger Edition",
                "view":{
                    "source":"file:///usr/lib/qml/WebOSCompositorBase/main.qml"
                },
                "contentItem":"10875168",
                "height":1080
            },
            "object_name":"",
            "height":1080,
            "metaProperties":{
                "x":0,
                "implicitWidth":0,
                "containmentMask":"QObject* == 0",
                "rotation":0,
                "y":0,
                "layer":"QQuickItemLayer* 20470560: # (QQuickItemLayer)",
                "top":"QQuickAnchorLine",
                "transitions":"QQmlListProperty<QQuickTransition>",
                "horizontalCenter":"QQuickAnchorLine",
                "implicitHeight":0,
                "verticalCenter":"QQuickAnchorLine",
                "z":0,
                "objectName":"",
                "visible":true,
                "childrenRect":"0,0:1920x1080",
                "transformOrigin":4,
                "clip":false,
                "opacity":1,
                "data":"QQmlListProperty<QObject>",
                "enabled":true,
                "resources":"QQmlListProperty<QObject>",
                "scale":1,
                "anchors":"QQuickAnchors* 20407624: # (QQuickAnchors)",
                "states":"QQmlListProperty<QQuickState>",
                "parent":"QQuickItem* == 0",
                "baseline":"QQuickAnchorLine",
                "activeFocusOnTab":false,
                "visibleChildren":"QQmlListProperty<QQuickItem>",
                "left":"QQuickAnchorLine",
                "state":"",
                "transformOriginPoint":"960,540",
                "right":"QQuickAnchorLine",
                "baselineOffset":0,
                "focus":true,
                "height":1080,
                "activeFocus":true,
                "smooth":true,
                "transform":"QQmlListProperty<QQuickTransform>",
                "children":"QQmlListProperty<QQuickItem>",
                "bottom":"QQuickAnchorLine",
                "width":1920,
                "antialiasing":false
            },
            "id":"10875168",
            "devicePixelRatio":1,
            "global_x":0,
            "width":1920,
            "mapped_lefttop_y":0,
            "hierarchy":"#",
            "isVisible":true,
            "global_y":0
        },
        {
            "object_name":"",
            "id":"12736984",
            "hierarchy":"# #",
            "width":1920,
            "isVisible":true,
            "mapped_lefttop_x":0,
            "mapped_lefttop_y":0,
            "height":1080,
            "global_y":0,
            "metaProperties":{
                "x":0,
                "implicitWidth":0,
                "containmentMask":"QObject* == 0",
                "rotation":0,
                "y":0,
                "layer":"QQuickItemLayer* 24596464: # (QQuickItemLayer)",
                "top":"QQuickAnchorLine",
                "transitions":"QQmlListProperty<QQuickTransition>",
                "horizontalCenter":"QQuickAnchorLine",
                "implicitHeight":0,
                "verticalCenter":"QQuickAnchorLine",
                "z":0,
                "objectName":"",
                "visible":true,
                "childrenRect":"0,0:1920x1080",
                "transformOrigin":4,
                "clip":false,
                "opacity":1,
                "data":"QQmlListProperty<QObject>",
                "enabled":true,
                "resources":"QQmlListProperty<QObject>",
                "scale":1,
                "anchors":"QQuickAnchors* 12888808: # (QQuickAnchors)",
                "states":"QQmlListProperty<QQuickState>",
                "parent":"QQuickItem* 10875168: # (QQuickRootItem)",
                "baseline":"QQuickAnchorLine",
                "activeFocusOnTab":false,
                "visibleChildren":"QQmlListProperty<QQuickItem>",
                "left":"QQuickAnchorLine",
                "state":"",
                "transformOriginPoint":"960,540",
                "right":"QQuickAnchorLine",
                "baselineOffset":0,
                "focus":true,
                "height":1080,
                "activeFocus":true,
                "smooth":true,
                "transform":"QQmlListProperty<QQuickTransform>",
                "children":"QQmlListProperty<QQuickItem>",
                "bottom":"QQuickAnchorLine",
                "width":1920,
                "antialiasing":false
            },
            "objectIdHierarchy":"10875168 12736984",
            "global_x":0,
            "class_name":"QQuickFocusScope",
            "devicePixelRatio":1,
            "classHierarchy":"QQuickRootItem QQuickFocusScope"
        }
    ],
    "returnValue":true,
    "teCommandId":9
}

notifyEvent

ACG: testautomation.operation
  • Added: API level 24

Description

Called by a nub to notify that an event occured

Parameters

Name

Required

Type

Description

stageIdRequiredNumber

Stage ID.

Note: An integer that is dynamically assigned to a loaded application by telluriumd service.

typeRequiredString

Event type.

Call Returns

Name

Required

Type

Description

returnValueRequiredBoolean

Indicates whether the execution succeeded.

  • true: Success
  • false: Failure
errorCodeOptionalNumber

Identifies the error. The method will return errorCode only if it fails. See the Error Codes Reference for more details.

errorTextOptionalString

Describes the error. The method will return errorText only if it fails. See the Error Codes Reference for more details.

Example

Example scenario

# luna-send -n 1 -f luna://com.palm.service.tellurium/notifyEvent '{"stageId": 1000, "type": "stageActivate"}'

Response:

{
    "returnValue": true
}

Example scenario

# luna-send -n 1 -f luna://com.palm.service.tellurium/notifyEvent '{ "stageId": 1000, "type": ""}'

Response:

{
    "returnValue": true
}

ping

ACG: testautomation.operation
  • Added: API level 24

Description

Allows to perform 'are-you-alive' check. Mirrors sent message

Parameters

Name

Required

Type

Description

MessageOptionalString

Ping message

Call Returns

Name

Required

Type

Description

[none]OptionalString

Mirrored message.

Example

Example : Message parameter is specified

# luna-send -n 1 -f luna://com.palm.service.tellurium/ping '{ "Message": "test" }'

Response:

{
    "Message": "test"
}

Example : Empty Message parameter

# luna-send -n 1 -f luna://com.palm.service.tellurium/ping '{ "Message": "" }'

Response:

{
    "Message": ""
}

Example : No parameter

# luna-send -n 1 -f luna://com.palm.service.tellurium/ping '{}'

Response:

{
}

replyToCommand

ACG: testautomation.operation
  • Added: API level 24

Description

This is called when a subscriber needs to reply to a command i.e., Sends a reply to the TelluriumdService from TelluriumNub(Webapp) or Qttestability(QML app) when client sends luna-send request to get element information for an application.

For more details on replyToCommand Valid case, Please refer Internal notes section.

Parameters

Name

Required

Type

Description

stageIdRequiredNumber

Stage Id is an integer dynamically assigned to a loaded application by telluriumd service.

teCommandIdRequiredNumber

Its an integer used as parameter to replyToCommand

commandRequiredString

Command that is used to execute the list of  any testability commands.

Ex:commandsBatch

queueRequiredObject array: queue

Contains the command to execute to get the element information [optionally an additional parameter "filter" is used to extract the required content from object hierarchy].

Call Returns

Name

Required

Type

Description

returnValueRequiredBoolean

Indicates whether the execution succeeded.

  • true: Success
  • false: Failure
errorCodeOptionalNumber

Identifies the error. The method will return errorCode only if it fails. See the Error Codes Reference for more details.

errorTextOptionalString

Describes the error. The method will return errorText only if it fails. See the Error Codes Reference for more details.

teCommandIdOptionalNumber

Its an integer assigned by telluriumD service when the given command is not in mapped list and its redirected to stage.

Example

Example scenario

# luna-send -n 1 -f luna://com.palm.service.tellurium/handleRequest '{
    "stageId": 1002,
    "command": "commandsBatch",
    "queue": [{"command": "getItems", "filter": {"objectName": "leftFunctionArea"}}]
}'

Response:

{
    "teCommandId": 14,
    "result": [
        {
            "result": [
                {
                    "classHierarchy": "QQuickRootItem QQuickRectangle_QML_154 NormalKeyboard_QMLTYPE_149

                    ...

        }
    ],
    "returnValue": true
}

Example response for a failed call (missing parameter 'command'):

# luna-send -n 1 -f luna://com.palm.service.tellurium/handleRequest
'{"stageId": 1000,
 "queue": [{"command": "getItems",
 "filter": {"objectName": "starfishOverlayView"}}]
}'

{
    "errorCode": -1,
    "returnValue": false,
    "errorText": "Parameter 'command' is missing"
}

Example response for a failed call (Invalid value to command parameter:command="commandsBatch1"):

# luna-send -n 1 -f luna://com.palm.service.tellurium/handleRequest

'{"stageId": 1000,
  "command": "commandsBatch1",
  "queue": [{"command": "getItems",
                  "filter": {"objectName": "starfishOverlayView"}
            }]
}'

{
    "errorCode": 0,
    "returnValue": false,
    "errorText": "command 'commandsBatch1' is unknown",
    "teCommandId": 61
}

Example response for a failed call (Invalid value to command parameter: command=1234):

luna-send -n 1 -f luna://com.palm.service.tellurium/handleRequest

'{"stageId": 1000, 
  "command": 1234,
  "queue": [{"command": "getItems",
                  "filter": {"objectName": "starfishOverlayView"}
                  }]
}'

{
    "errorCode": 0,
    "returnValue": false,
    "errorText": "command name is not specified",
    "teCommandId": 63
}

Note: Same response occurs when command parameter assigns with true(boolean), "abcd"(string)

Example response for a failed call (missing parameter 'queue' object):

# luna-send -n 1 -f luna://com.palm.service.tellurium/handleRequest  
'{"stageId": 1000,
  "command": "commandsBatch"
}'
{
    "result": null,
    "returnValue": false,
    "teCommandId": 65
}

Example response for a failed call (Invalid value to 'queue' object:queue="abcd"):

# luna-send -n 1 -f luna://com.palm.service.tellurium/handleRequest  
'{"stageId": 1000, 
  "command": "commandsBatch", 
  "queue": "abcd"
}'

{
    "result": null,
    "returnValue": false,
    "teCommandId": 66
}

Note: Same response occurs when invalid values true(boolean), 1234(number) assigned to queue object

Example response for a failed call (Invalid value to command of 'queue' object: command=1234):

# luna-send -n 1 -f luna://com.palm.service.tellurium/handleRequest  
'{"stageId": 1000,
  "command": "commandsBatch",
  "queue": [{"command": 1234,
             "filter": {"objectName": "starfishOverlayView"}
            }
           ]
}'

{
    "result": [
        {
            "errorCode": 0,
            "returnValue": false,
            "errorText": "command name is not specified"
        }
    ],
    "returnValue": true,
    "teCommandId": 68
}

Note: Same response occurs when invalid values true(boolean), "abcd"(string) assigned to queue object

Example response for a failed call (None Parameter):

# luna-send -n 1 -f luna://com.palm.service.tellurium/replyToCommand '{}'

{
    "errorCode": -1,
    "returnValue": false,
    "errorText": "Parameter 'teCommandId' is missing"
}

Example response for a failed call(Invalid Command ID):

# luna-send -n 1 -f luna://com.palm.service.tellurium/replyToCommand '{"teCommandId": "0"}'
{
    "errorCode": -1,
    "returnValue": false,
    "errorText": "Command ID is invalid"
}

Example response for a failed call(Invalid Json Error):

# luna-send -n 1 -f luna://com.palm.service.tellurium/replyToCommand '{"teCommandId: "0"}'

{
    "errorCode": 4,
    "returnValue": false,
    "errorText": "Invalid JSON message"
}

subscribeToCommands

ACG: testautomation.operation
  • Added: API level 24

Description

Subscribes to Tellurium commands

Parameters

Name

Required

Type

Description

subscribeRequiredBoolean

Indicates whether to subscribe for related events.

  • true: Subscribe
  • false: Do not subscribe
appInfoRequiredObject: appInfo

JSON containing application info.

baseURIOptionalString

Document URI

widthOptionalNumber

Window width

heightOptionalNumber

Window height

nameRequiredString

Window name

sceneRequiredString

Scene name

versionOptionalString

Nub version

typeRequiredString

type name

Call Returns

Name

Required

Type

Description

returnValueRequiredBoolean

Indicates whether the execution succeeded.

  • true: Success
  • false: Failure
errorCodeOptionalNumber

Identifies the error. The method will return errorCode only if it fails. See the Error Codes Reference for more details.

errorTextOptionalString

Describes the error. The method will return errorText only if it fails. See the Error Codes Reference for more details.

subscribedOptionalBoolean

Indicates if the call was subscribed.

  • true: Subscribed
  • false: Not subscribed
stageIdOptionalNumber

An integer dynamically assigned to a loaded application by telluriumd service.

Example

Example scenario

# luna-send -i luna://com.palm.service.tellurium/subscribeToCommands '{
    "subscribe":true,
    "appInfo":{"id":"amazon.html"},
    "baseURI":"file:///media/cryptofs/apps/usr/palm/applications/amazon.html/index.html",
    "width":1280,
    "height":720,
    "name":"",
    "type":"card",
    "scene":"phone",
    "version":"2.2.6"
}'

Response:

{
    "subscribed":true,
    "stageId":1006,
    "returnValue":true
}

subscribeToEvents

ACG: testautomation.operation
  • Added: API level 24

Description

Subscribes to stages' events (received from stage in notifyEvent)

Parameters

Name

Required

Type

Description

subscribeRequiredBoolean

Indicates whether to subscribe for notifications. Possible values are:

  • true: Subscribed
  • false: Not subscribed

Call Returns

Name

Required

Type

Description

returnValueRequiredBoolean

Indicates whether the execution succeeded.

  • true: Success
  • false: Failure
errorCodeOptionalNumber

Identifies the error. The method will return errorCode only if it fails. See the Error Codes Reference for more details.

errorTextOptionalString

Describes the error. The method will return errorText only if it fails. See the Error Codes Reference for more details.

subscribedOptionalBoolean

Indicates if the call was subscribed.

Example

Example scenario

# luna-send -i luna://com.palm.service.tellurium/subscribeToEvents '{"subscribe":true}'

Response:

{
    "subscribed":true,
    "returnValue":true
}

version

ACG: testautomation.operation
  • Added: API level 24

Description

Returns the tellurium version from the submission tag.

Parameters

None

Call Returns

Name

Required

Type

Description

returnValueRequiredBoolean

Indicates whether the execution succeeded.

  • true: Success
  • false: Failure

Applicable to: None

versionOptionalString

Version details.

Example

Example scenario

# luna-send -n 1 -f luna://com.palm.service.tellurium/version '{}'

Response:

{
    "returnValue": true,
    "version": "v2.0.0"
}

Objects

appInfo

Provide the application ID to subscribe.

Ex:   "appInfo":{"id":"amazon.html"}

Name

Required

Type

Description

idRequiredString

Application Id

Ex:"amazon.html"

resolutionOptionalObject: resolution

resolution containing width and height

filter

Its an object that describes details to apply the filter (usually used when "command": "getItems")

Name

Required

Type

Description

classNameOptionalString

Filter objects by class name.

Class name is compared by first characters. i.e. if className from filter "QQuickText", and item's class name is "QQuickText_QML_124",item matches filter.

objectNameOptionalString

string, filter object by object name.

visibleOptionalBoolean

Filter object by visibility

onlyActiveWindowOptionalBoolean

Fetch only objects from active/inactive window(s)

hierarchyOptionalString

Filter only objects matched to hierarchy, represented by object names.

getApplicationInformationResult

Provides QML application information.

Name

Required

Type

Description

resolutionRequiredObject: resolution

Screen resolution

displayIdRequiredNumber

Contains information about the displayID on which the application is running.

By default the displayID value is -1

pidRequiredNumber

Process Id of the running application

isQmlApplicationRequiredBoolean

Returns true if requested application is Qml app otherwise false

idRequiredString

Name of the Requested Application

getItemsResult

Provides element information for QML application using object hierarchy.

Name

Required

Type

Description

objectIdHierarchyRequiredString

Generates string with hierarchy based on object id

Ex:"objectIdHierarchy": "23278552"

classHierarchyRequiredString

Generates string with hierarchy based on class names.

Ex:"classHierarchy": "QQuickRootItem"

class_nameRequiredString

Get object instance class name as a string with Qt's meta-object system.

mapped_lefttop_xRequiredNumber

The x co-ordinate that is obtained by calling mapToScene() of QQuickItem Class, which Maps the given point in this item's coordinate system to the equivalent point within the scene's coordinate system, and returns the mapped coordinate.

windowOptionalObject: window

Returns the window in which this item is rendered.

object_nameRequiredString

This property holds the name of the object.

By default, this property contains an empty string.

heightRequiredNumber

Returns window height of the item

metaPropertiesRequiredObject

Provides the multiple properties like x,y co-ordinates, and so on for the requested QML application.

idRequiredString

Provides window id as a string .

Ex:"id": "23278552"

devicePixelRatioRequiredNumber

Returns the ratio between physical pixels and device-independent pixels for the window.

global_xRequiredNumber

Provides the global x co-ordinate of Quick Item

Ex:"global_x": 0

widthRequiredNumber

Provides the width of the item.

Ex: "width": 512

mapped_lefttop_yRequiredNumber

The y co-ordinate that is obtained by calling mapToScene() of QQuickItem Class, which Maps the given point in this item's coordinate system to the equivalent point within the scene's coordinate system, and returns the mapped coordinate.

hierarchyRequiredString

Provides the hierarchy in string format. Hierarchy of the item is found by prefixing the object name with # from the parent to current item.

Ex: If parent item object name is "" and hierarchy is "#" and current item object name is "secondaryMain" then hierarchy of the current item is "# #secondaryMain"

isVisibleRequiredBoolean

Provides the details of the visibility of the item. Item is visible if set to true otherwise set to false.

Ex: "isVisible": true

global_yRequiredNumber

Provides global y co-ordinates of Quick item.

Ex:"global_y": 0

getRunningAppsAndStagesResult

Provides running and staging information of QML apps.

Name

Required

Type

Description

appIdRequiredString

Application Id of the running app

displayIdRequiredNumber

displayId on which the application is running.

By default the displayId value is 0.

stagesRequiredObject: stages

Contains process id, stage Id, name, isActive, scene, type information of the running application along with the display width and height.

queue

a)queue(mandatory): array, containing objects, each representing any of testability commands.
   Ex:  setItemsProperties: sets properties for QML elements
                           getItems: Gets items for the selected application.

b)queue(mandatory): array, containing objects, each representing filter and properties array.
                           filter       : object, describing a filter

Name

Required

Type

Description

commandRequiredString

It has the command to be executed to extract the element information for the selected application

Ex:{"command": "getItems"}

filterOptionalObject: filter

Its an object that describes details to apply the filter.

For more details filter object section.


                

resolution

Screen resolution

Name

Required

Type

Description

widthRequiredNumber

Screen width

By default set to 1920

heightRequiredNumber

Screen height

By default set to 1080

stages

Provide stage Information of the running application.

Name

Required

Type

Description

idRequiredNumber

stage id of the application

pidRequiredNumber

Process Id of the running application

widthRequiredNumber

Screen Width

By default screen width set to 1920

heightRequiredNumber

Screen height

By default Screen height set to 1080

nameRequiredString

Window name

By default set to ""

isActiveRequiredBoolean

returns true if window is in active state else False

sceneRequiredString

scene name

By default it is set to ""

typeRequiredString

type name

By default it is set to ""

window

Creates a top level window and accesses the screen information.

Name

Required

Type

Description

idRequiredNumber

Provides the details of window id.

Ex:"id": "11266048"

widthRequiredNumber

Defines width of the screen.

width:"1920"

heightRequiredNumber

Defines the height of the screen.

Ex:"height":1080

isVisibleRequiredBoolean

Defines whether the window is visible on the screen.

Ex:"isVisible": true

activeFocusItemRequiredNumber

The item which currently has active focus or null if there is no item with active focus.

This property was introduced in Qt 5.1.

Ex:"activeFocusItem": "26405216"

xRequiredNumber

Defines the window's position and size.

The (x,y) position is relative to the Screen if there is only one, or to the virtual desktop (arrangement of multiple screens).

Ex:"x":0

yRequiredNumber

Defines the window's position and size.

The (x,y) position is relative to the Screen if there is only one, or to the virtual desktop (arrangement of multiple screens).

Ex:"y":0

isActiveRequiredBoolean

Defines active status of the window.

Ex:"isActive": true

titleRequiredString

The window's title in the windowing system.

The window title might appear in the title area of the window decorations, depending on the windowing system and the window flags. It might also be used by the windowing system to identify the window in other contexts, such as in the task switcher.

contentItemRequiredString

The invisible root item of the scene.

Ex:"contentItem": "10875168"

viewRequiredObject: view

It is a class which provides a window for displaying a Qt Quick user interface.

Ex:"view": { "source": "file:///usr/lib/qml/WebOSCompositorBase/main.qml"}

API Error Codes Reference

Error Code

Error Text

Error Description

-1Parameter is missing

States that parameter with name <parameter name> is missed, need to specify required parameter

-1Not a subscription message

Need to specify subscription message

-1Command ID is invalid

Command ID is invalid, specify correct command

-1Invalid Stage ID

Stage ID is invalid, Specify correct Stage ID

-1Invalid application ID

States that invalid value assigned to appID, need to specify appID of the required application

-1command name is not specified

Need to specify proper name of the command to be executed to get the element information

-1command 'commandsBatch1' is unknown

specify the proper method name [Ex:commandsBatch] which executes the command specified to queue object

-1Invalid JSON message

States that the provided input data is not in valid json format.

Contents