diff --git a/content/en/_index.html b/content/en/_index.html index d40d5e3a..31417a4d 100644 --- a/content/en/_index.html +++ b/content/en/_index.html @@ -5,7 +5,7 @@
The current installation status.
-See the statusValue parameter (in Subscription Return) of the install method for more information.
+See the statusValue property (in Subscription Return) of the install method for more information.
The current app removal status.
-See the statusValue parameter (in Subscription Return) of the install method for more information.
+See the statusValue property (in Subscription Return) of the remove method for more information.
The current installation status. Possible values are:
+The current installation status.
+Possible values are:
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
-2 | +Varies | +
+ For details, check "API Error Codes Reference" table. + |
+
Example code
@@ -607,20 +623,10 @@-
Example response for a successful call:
+Response:
{
"subscribed": true,
"returnValue": true
- }
-
-
Example response for a failed call:
-{
- "subscribed": false,
- "errorCode": -2,
- "returnValue": false,
- "errorText": "Missing required key is required but it is missing"
}
Description
+Contains detailed information of the progress of app removal.
+The current app removal status.
-See the statusValue parameter (in Subscription Return) of the install method for more information.
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+ |||
---|---|---|---|---|---|
details | -Required | -Object: details | +-2 | +Varies |
- Contains detailed information of the progress of app removal. +For details, check "API Error Codes Reference" table. |
errorCode | +Optional | +Number | +
+ The error code for the failed operation. +Note: Only appears during app installation. + |
+ ||
reason | +Optional | +String | +
+ Indicates the reason for the failure of the operation. + |
+
Audio connection details.
@@ -721,6 +721,7 @@Example: Check the status of the bass boost audio effect
+# luna-send -f -n 1 luna://com.webos.service.audio/checkAudioEffectStatus '{"effectName":"bass boost"}'
+Response:
+{
+ "returnValue" : true,
+ "enabled": true
+ }
+
Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details.
+Indicates the reason for the failure of the operation.
Indicates if the input volume is subscribed to get the notifications.
@@ -1419,7 +1438,6 @@Note: Always returns true.
Note: Always returns value as true.
+
Indicates the stream name of the input volume to be applied. Check "Parameters" section for list of possible values.
@@ -1446,7 +1464,7 @@Returns the value of applied volume in case of success.
@@ -1456,25 +1474,56 @@
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
1 | +Could not validate json message against schema | +
+ Error occurs due to wrong json request. + |
+
15 | +Audiod Internal Error | +
+ Internal error + |
+
17 | +Audiod Unknown Stream | +
+ A wrong streamType is requested. + |
+
Example scenario
# luna-send -n i -f luna://com.webos.service.audio/getInputVolume '{
+
# luna-send -i -f luna://com.webos.service.audio/getInputVolume '{
"streamType":"default1",
"subscribe":true
}'
Response:
-{
- "subscribed":true,
- "volume":50,
- "streamType":"default1",
- "returnValue":true
- }
-
Subscription response:
{
"subscribed":true,
"volume":100,
@@ -1743,13 +1792,13 @@
Subscribe for notifications on changes in the sound output device.
Possible values are:
Possible values are:
Default: false
Indicates if subscribed to get the notifications.
-Possible values are:
-Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details.
+Indicates the reason for the failure of the operation.
Indicates the status of the operation.
-Possible values are:
-Indicates if subscribed to get the notifications.
-Possible values are:
-Note: Always returns true
Indicates the list of active connections.
@@ -2582,12 +2614,51 @@
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
1 | +Could not validate json message against schema | +
+ Error occurs due to wrong json request. + |
+
15 | +Audiod Internal Error | +
+ Internal error + |
+
17 | +Audiod Unknown Stream | +
+ A wrong streamType is requested. + |
+
With subscription
# luna-send -n i -f luna://com.webos.service.audio/getStreamStatus '{
+
# luna-send -i -f luna://com.webos.service.audio/getStreamStatus '{
"streamType":"default1",
"subscribe":true
}'
@@ -2602,23 +2673,6 @@
Subscription response:
-{
- "streamObject":[
- {
- "policyStatus":false,
- "source":"source",
- "inputVolume":100,
- "muteStatus":false,
- "sink":"sink",
- "streamType":"default2",
"activeStatus":true
}
],
@@ -3323,7 +3377,7 @@
Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details.
+Indicates the reason for the failure of the operation.
Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details.
+Indicates the reason for the failure of the operation.
Internal error
Wrong parameters in request
+Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details.
+Indicates the reason for the failure of the operation.
Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details.
+Indicates the reason for the failure of the operation.
Internal error
Wrong parameters in request
+Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details.
+Indicates the reason for the failure of the operation.
Indicates the sample format to be set.
@@ -5361,20 +5429,20 @@Indicates the sample rate to be set.
Possible rates are:
Indicates the number of audio channels to be used while playing the file.
Possible values are:
Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details.
+Indicates the reason for the failure of the operation.
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
1 | +Could not validate json message against schema | +
+ Error occurs due to wrong json request. + |
+
19 | +Invalid file format | +
+ Invaild file format provided + |
+
19 | +Invalid virtual sink name | +
+ Invaild virtual sink name provided + |
+
19 | +Invalid sample format | +
+ Invaild sample format provided + |
+
19 | +Invalid channel count | +
+ Invaild channel count provided + |
+
19 | +Invalid sample rate | +
+ Invaild sample rate provided + |
+
Example code
@@ -5644,6 +5772,7 @@Example: Enable bass boost effect
+# luna-send -f -n 1 luna://com.webos.service.audio/setAudioEffect '{"effectName":"bass boost", "enabled":true}'
+Response:
+{
+ "returnValue" : true
+ }
+
Indicates the reason for the failure of the operation. See the "API Error Codes Reference" section for details.
+Indicates the reason for the failure of the operation.
+
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
1 | +Could not validate json message against schema | +
+ Error occurs due to wrong json request. + |
+
3 | +Volume Not in Range | +
+ Error occurs due to invalid volume level. + |
+
15 | +Audiod Internal Error | +
+ Internal error + |
+
17 | +Audiod Unknown Stream | +
+ A wrong streamType is requested. |
204 | +Audiod Unknown soundOutput | +
+ Invalid sound output value given + |
+
Indicates the audio output device.
@@ -7097,7 +7290,7 @@Name of the system sound.
@@ -7158,6 +7351,52 @@
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
1 | +Could not validate json message against schema | +
+ Error occurs due to wrong json request. + |
+
2 | +Missing 'name' string parameter. | +
+ 'name' parameter is missed. + |
+
3 | +Invalid 'name' string parameter value or file not found | +
+ Invalid 'name' parameter is provided. + |
+
3 | +Invalid 'sink' string parameter value or file not found. | +
+ Invalid 'sink' parameter is provided. + |
+
Example code
@@ -7216,32 +7455,6 @@Example scenario
# luna-send -n 1 -f luna://com.webos.service.audio/systemsounds/playFeedback '{}'
-Response:
-{
- "errorCode": 2,
- "returnValue": false,
- "errorText": "Missing 'name' string parameter."
- }
-
Example scenario
-# luna-send -n 1 -f luna://com.webos.service.audio/systemsounds/playFeedback '{"namex": "voicestart"}'
-Response:
-{
- "errorCode": 1,
- "returnValue": false,
- "errorText": "Could not validate json message against schema"
- }
-
Example scenario
-# luna-send -n 1 -f luna://com.webos.service.audio/systemsounds/playFeedback '{"name": "shutter"}'
Response:
@@ -7250,19 +7463,6 @@Example scenario
-# luna-send -n 1 -f luna://com.webos.service.audio/systemsounds/playFeedback '{"name": "shutter_test"}'
-Response:
-{
- "errorCode": 3,
- "returnValue": false,
- "errorText": "Invalid 'name' string parameter value or file not found."
- }
-
Invalid number of input parameters against defined schema of the method
-Wrong JSON message format
-AUDIOD_ERRORCODE_NOT_SUPPORT_VOLUME_CHANGE
AUDIOD_ERRORCODE_NOT_SUPPORT_VOLUME_CHANGE
AUDIOD_ERRORCODE_NOT_SUPPORTED
AUDIOD_ERRORCODE_NOT_SUPPORTED
AUDIOD_ERRORCODE_NOT_SUPPORTED
AUDIOD_ERRORCODE_NOT_SUPPORTED
Check details in the "API Error Codes Reference" table.
There is a problem or failure in writing data to a file. It could occur due to various reasons such as insufficient permissions, lack of disk space, or hardware issues.
+Check details in the "API Error Codes Reference" table.
Indicates the location where the captured images are to be saved.
-Note: The API returns an error (error code 45) if the path specified is read-only.
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
39 | +Fail to write file | +
+ There is a problem or failure in writing data to a file. It could occur due to various reasons such as insufficient permissions, lack of disk space, or hardware issues. + |
+
45 | +Cannot write at the specified location | +
+ Cannot write at the specified location. + |
+
Example : Without specifying the location
@@ -3247,7 +3285,7 @@Check details in the "API Error Codes Reference" table.
Check details in the "API Error Codes Reference" table.
Check details in the "API Error Codes Reference" table.
{
- "configs" : [
- {
- "data": {
- "compositorGeometry" : "1920x1080+0+0r0"
- }
+ "configs" : [
+ {
+ "data": {
+ "compositorGeometry" : "1920x1080+0+0r0"
+ }
}
- ]
+ ]
}
An array containing information about the currently connected device(s).
+
+ Name + |
+
+ Required + |
+
+ Type + |
+
+ Description + |
+
---|---|---|---|
storageDeviceList | +Optional | +Object array: storageDeviceList | +
+ List of information about the storage devices that are currently connected. + |
+
nonStorageDeviceList | +Optional | +Object array: nonStorageDeviceList | +
+ List of information about the non-storage devices that are currently connected. + |
+
List of the storage and non-storage devices connected and their statuses.
@@ -2045,6 +2085,30 @@List of statuses of the drives in the device
Name of the device product.
+Port number where the sound device is connected, it gives -1 for internal devices.
+Name of the device vendor.
+Example code
+Example : Copy the ringtone file (.mp3) to desired location, for example (/usr/palm/sounds/)
// Copy the ringtone file(.mp3) to desired location. For example, "/usr/palm/sounds/"
# luna-send -n 1 -f luna://com.webos.service.systemservice/ringtone/addRingtone '{"filePath": "/usr/palm/sounds/ringtone.mp3" }'
Response:
{
@@ -2157,7 +2156,7 @@
The month. Possible values are 1 - 12.
@@ -6209,7 +6208,7 @@Day of week. Possible values are 0 - 6, where 0 is Sunday and 6 is Saturday.
@@ -6217,7 +6216,7 @@Week of the month. Possible values are 1 - 5, where 1 is the 1st week and 5 is the last or 5th week of month.
@@ -6225,7 +6224,7 @@The hour. Possible values are 0 - 23.
diff --git a/content/en/docs/reference/ls2-api/com-webos-service-wifi.html b/content/en/docs/reference/ls2-api/com-webos-service-wifi.html index 346e78cd..d5b7b72c 100644 --- a/content/en/docs/reference/ls2-api/com-webos-service-wifi.html +++ b/content/en/docs/reference/ls2-api/com-webos-service-wifi.html @@ -1,7 +1,7 @@ --- title: com.webos.service.wifi -date: 2023-10-31 -api_level: 27 +date: 2024-01-17 +api_level: 28 weight: 360 toc: true --- @@ -450,7 +450,7 @@SSID of the desired network. Required for all connections except when using a known profile (profileId parameter is set).
Indicates whether to connect to a hidden network. Possible values are:
Indicates the status of operation. Possible values are:
An 8 digit random WPS pin.
ID of the profile to be deleted.
Indicates the status of operation. Possible values are:
ID of the profile to be listed.
Indicates the status of operation. Possible values are:
Indicates the status of operation. Possible values are:
Service type.Valid service types are upnp or bonjour.
Description. Required for upnp service type.
Bonjour query. Required for bonjour service type.
Bonjour response. Required for bonjour service type.
Device address of the peer to connect.
Passphrase for connecting to this group. A valid passphrase should have 8 to 63 characters.
Service type. Valid service types are upnp or bonjour.
Description. Required for upnp service type.
Bonjour query. Required for bonjour service type.
Device address of the peer to disconnect.
Service type. Valid service types are upnp or bonjour.
A peer to search. If omitted then search for all peers.
Description. Required for upnp service type.
Bonjour query. Required for bonjour service type.
To be notified if a group is added, set subscribe to true.
To be notified if a group is deleted, set subscribe to false.
@@ -3951,7 +3951,7 @@See the Error Codes Reference of this method for more details.
To be notified if a group is added, set subscribe to true.
+To be notified if a group is deleted, set subscribe to false.
+Subscribe to be notified about any incoming Wi-Fi direct connections. Possible values are:
Indicates if subscribed to get notifications. Possible values are:
Indicates the status of operation. Possible values are:
Indicates the status of operation. Possible values are:
Wi-Fi Protected setup type. Possible values are:
The PIN for Wi-Fi protected setup if the wpsType argument is display.
Subscribe and get notified of the changes in the list of peers found. Possible values are:
Indicates the status of operation. Possible values are:
Indicates if subscribed to get notifications. Possible values are:
Array of objects containing information about the available peers.
Indicates the status of operation. Possible values are:
Array of objects containing information on Wi-Fi Direct peers.
If P2P is enabled then this value is enabled, otherwise it is disabled.
If listening for incoming connections is enabled then this value is enabled , otherwise disabled.
If persistent state is enabled then this value enabled" , "disabled" otherwise.
true if Wi-Fi Display feature is enabled, false otherwise.
Device type. One of the following: source, primary-sink, secondary-sink, or dual-role.
true if Wi-Fi Direct Session is enabled, false otherwise.
true if Content Protection using HDCP System 2.0/2.1 enabled, false otherwise.
Device name to be used.
Set to enabled to enable the Wi-Fi direct connection and disabled to disable the Wi-Fi direct connection.
Set the Wi-Fi direct listen state to either enabled or disabled.
Enabling listen state will make this device visible on other Wi-Fi direct devices so that it can initiate connection to them.
@@ -5919,7 +5928,7 @@Set the P2P persistent mode to enabled or disabled.
Enabling persistent mode will save any group created on this device across reboots.
@@ -5949,7 +5958,7 @@SSID of the group.
To enable tethering , set tethering to true.
To disable tethering , set tethering to false.
@@ -6128,7 +6137,7 @@Set to true to enable the Wi-Fi Display feature and false to disable.
-When the parameter has already set false value, it can not be set false again.
-Default value: false
+If it is blank, it is set false
+we can not set false value cannot be set twice in a row.
Device type. Possible device types are : source, primary-sink, secondary-sink, or dual-role.
Set to true to enable Wi-Fi Direct Session, false to disable.
Set to true to enable Content Protection using HDCP System 2.0/2.1 and false to disable.
Pin for WPS-PIN mode.
Object including information about a peer.
-Example
-
- "peerInfo": {
- "groupOwner": false,
- "signalLevel": 80,
- "configMethod": 4488,
- "deviceAddress": "02:fc:ef:a0:d0:4a",
- "deviceName": "Test Test's G3",
- "connected": false,
- "deviceType": "00010050f2040005",
- }
-
- Name - |
-
- Required - |
-
- Type - |
-
- Description - |
-
---|---|---|---|
deviceName | -Required | -String | -
- Name of the peer. - |
-
deviceAddress | -Required | -String | -
- Address of the peer. - |
-
groupOwner | -Required | -Boolean | -
- true if the peer is the owner of the current active group, false otherwise. - |
-
configMethod | -Required | -Number | -
- Configuration methods supported by the peer. - |
-
signalLevel | -Required | -Number | -
- Signal level of the peer. - |
-
peerIp | -Optional | -String | -
- IP address of the peer if it is currently connected to our group. - |
-
deviceType | -Required | -String | -
- Device type of the peer. - |
-
connected | -Required | -Boolean | -
- Connection status. - |
-
This object is used to provide security information for establishing a connection.
diff --git a/content/en/docs/reference/ls2-api/com-webos-surfacemanager.html b/content/en/docs/reference/ls2-api/com-webos-surfacemanager.html index 4ed4deee..7f7b2d90 100644 --- a/content/en/docs/reference/ls2-api/com-webos-surfacemanager.html +++ b/content/en/docs/reference/ls2-api/com-webos-surfacemanager.html @@ -1,7 +1,7 @@ --- title: com.webos.surfacemanager -date: 2023-10-31 -api_level: 27 +date: 2024-01-15 +api_level: 28 weight: 370 toc: true --- @@ -20,7 +20,7 @@Information about a surface that is shown in the foreground.
@@ -822,7 +822,7 @@Information about a surface that is shown in the foreground.
@@ -859,6 +859,38 @@
+ Error Code + |
+
+ Error Text + |
+
+ Error Description + |
+
---|---|---|
-1001 | +Invalid parameter type | +
+ Indicates that parameter is invalid. + |
+
-1000 | +Json parse error | +
+ Indicates that JSON format is invalid + |
+
Example: Without subscription
@@ -938,6 +970,88 @@Example: Multiview (side-by-side)
+# luna-send -n 1 luna://com.webos.surfacemanager/getForegroundAppInfo '{}'
+ {
+ "foregroundAppInfo": [
+ {
+ "appId": "com.webos.app.livetv",
+ "displayId": 0,
+ "multiview": true,
+ "params": {
+ },
+ "pip": false,
+ "primary": true,
+ "processId": "2419",
+ "viewType": "mvsxs",
+ "windowGroup": true,
+ "windowGroupOwner": true,
+ "windowGroupOwnerId": "",
+ "windowType": "_WEBOS_WINDOW_TYPE_CARD"
+ },
+ {
+ "appId": "com.webos.app.browser",
+ "displayId": 0,
+ "multiview": true,
+ "params": {
+ },
+ "pip": false,
+ "primary": false,
+ "processId": "22382",
+ "viewType": "mvsxs",
+ "windowGroup": false,
+ "windowType": "_WEBOS_WINDOW_TYPE_CARD"
+ }
+ ],
+ "mode": "multiview",
+ "returnValue": true
+ }
+
Example: Multiview (picture-in-picture)
+# luna-send -n 1 luna://com.webos.surfacemanager/getForegroundAppInfo '{}'
+ {
+ "foregroundAppInfo": [
+ {
+ "appId": "com.webos.app.livetv",
+ "displayId": 0,
+ "multiview": true,
+ "params": {
+ },
+ "pip": false,
+ "primary": true,
+ "processId": "2419",
+ "viewType": "mvpip",
+ "windowGroup": true,
+ "windowGroupOwner": true,
+ "windowGroupOwnerId": "",
+ "windowType": "_WEBOS_WINDOW_TYPE_CARD"
+ },
+ {
+ "appId": "com.webos.app.browser",
+ "displayId": 0,
+ "multiview": true,
+ "params": {
+ },
+ "pip": true,
+ "primary": false,
+ "processId": "22382",
+ "viewType": "mvpip",
+ "windowGroup": false,
+ "windowType": "_WEBOS_WINDOW_TYPE_CARD"
+ }
+ ],
+ "mode": "multiview",
+ "returnValue": true
+ }
+
Whether it is a “main” app as determined by UX policy
+Indicates if it is a "main" app as determined by UX policy.
+Default: false
+Indicate whether multivew executes or not.
+default: false
+Indicate whether the multi-view mode is pip or not.
+default: false
+Indicates additional information about multiview.
+Possible Values are:
+default: normal
+Indicates the id of display associated with the surface.
+Indicates the object parameter associated with the surface.
+Note: Empty object(={}) if it has no value.
Platform Version
Release Date
28
webOS OSE 2.25.0
January 17, 2024
27
webOS OSE 2.24.0
2.4.0
2.4.0
2.25.0
2.24.0