Skip to content

Commit 4ab8acb

Browse files
DELIA-67834 : Updated docs. (#276)
Co-authored-by: Anand Kandasamy <[email protected]>
1 parent 79b8d53 commit 4ab8acb

File tree

4 files changed

+161
-161
lines changed

4 files changed

+161
-161
lines changed

docs/apis/SystemPlugin.md

Lines changed: 0 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ org.rdk.System interface methods:
116116
| [uploadLogsAsync](#uploadLogsAsync) | Starts background process to upload logs |
117117
| [abortLogUpload](#abortLogUpload) | Stops background process to upload logs |
118118
| [getThunderStartReason](#getThunderStartReason) | Returns the Thunder start reason |
119-
| [SetPrivacyMode](#SetPrivacyMode) | Setting Privacy Mode |
120-
| [getPrivacyMode](#getPrivacyMode) | Getting Privacy Mode |
121119

122120

123121
<a name="clearLastDeepSleepReason"></a>
@@ -3646,95 +3644,6 @@ This method takes no parameters.
36463644
}
36473645
```
36483646

3649-
<a name="SetPrivacyMode"></a>
3650-
## *SetPrivacyMode*
3651-
3652-
Setting Privacy Mode.
3653-
3654-
### Events
3655-
3656-
| Event | Description |
3657-
| :-------- | :-------- |
3658-
| [onPrivacyModeChanged](#onPrivacyModeChanged) | Triggered when the Privacy Mode changes. |
3659-
### Parameters
3660-
3661-
| Name | Type | Description |
3662-
| :-------- | :-------- | :-------- |
3663-
| params | object | |
3664-
| params.privacyMode | string | New Privacy Mode |
3665-
3666-
### Result
3667-
3668-
| Name | Type | Description |
3669-
| :-------- | :-------- | :-------- |
3670-
| result | string | On success null will be returned |
3671-
3672-
### Example
3673-
3674-
#### Request
3675-
3676-
```json
3677-
{
3678-
"jsonrpc": "2.0",
3679-
"id": 42,
3680-
"method": "org.rdk.System.SetPrivacyMode",
3681-
"params": {
3682-
"privacyMode": "DO_NOT_SHARE"
3683-
}
3684-
}
3685-
```
3686-
3687-
#### Response
3688-
3689-
```json
3690-
{
3691-
"jsonrpc": "2.0",
3692-
"id": 42,
3693-
"result": "null"
3694-
}
3695-
```
3696-
3697-
<a name="getPrivacyMode"></a>
3698-
## *getPrivacyMode*
3699-
3700-
Getting Privacy Mode.
3701-
3702-
### Events
3703-
3704-
No Events
3705-
3706-
### Parameters
3707-
3708-
This method takes no parameters.
3709-
3710-
### Result
3711-
3712-
| Name | Type | Description |
3713-
| :-------- | :-------- | :-------- |
3714-
| result | string | Current Privacy Mode |
3715-
3716-
### Example
3717-
3718-
#### Request
3719-
3720-
```json
3721-
{
3722-
"jsonrpc": "2.0",
3723-
"id": 42,
3724-
"method": "org.rdk.System.getPrivacyMode"
3725-
}
3726-
```
3727-
3728-
#### Response
3729-
3730-
```json
3731-
{
3732-
"jsonrpc": "2.0",
3733-
"id": 42,
3734-
"result": "DO_NOT_SHARE"
3735-
}
3736-
```
3737-
37383647
<a name="Notifications"></a>
37393648
# Notifications
37403649

@@ -3761,7 +3670,6 @@ org.rdk.System interface events:
37613670
| [onDeviceMgtUpdateReceived](#onDeviceMgtUpdateReceived) | Triggered when the device management update completes |
37623671
| [onTimeZoneDSTChanged](#onTimeZoneDSTChanged) | Triggered when device time zone changed |
37633672
| [onLogUpload](#onLogUpload) | Triggered when logs upload process is done or stopped |
3764-
| [onPrivacyModeChanged](#onPrivacyModeChanged) | Triggered after the Privacy Mode changes (see `SetPrivacyMode`) |
37653673

37663674

37673675
<a name="onFirmwarePendingReboot"></a>
@@ -4185,27 +4093,3 @@ Triggered when logs upload process is done or stopped.
41854093
}
41864094
```
41874095

4188-
<a name="onPrivacyModeChanged"></a>
4189-
## *onPrivacyModeChanged*
4190-
4191-
Triggered after the Privacy Mode changes (see `SetPrivacyMode`).
4192-
4193-
### Parameters
4194-
4195-
| Name | Type | Description |
4196-
| :-------- | :-------- | :-------- |
4197-
| params | object | |
4198-
| params.privacyMode | string | Receive Privacy Mode changes |
4199-
4200-
### Example
4201-
4202-
```json
4203-
{
4204-
"jsonrpc": "2.0",
4205-
"method": "client.events.onPrivacyModeChanged",
4206-
"params": {
4207-
"privacyMode": "DO_NOT_SHARE"
4208-
}
4209-
}
4210-
```
4211-

docs/apis/UserSettingsPlugin.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ org.rdk.UserSettings interface methods:
5353
| [setCaptions](#setCaptions) | Setting Captions |
5454
| [setPreferredCaptionsLanguages](#setPreferredCaptionsLanguages) | Setting PreferredCaption Languages |
5555
| [setPreferredClosedCaptionService](#setPreferredClosedCaptionService) | Setting Preferred Closed Caption Service |
56+
| [setPrivacyMode](#setPrivacyMode) | Setting Privacy Mode |
5657
| [setPinControl](#setPinControl) | Setting PinControl |
5758
| [setViewingRestrictions](#setViewingRestrictions) | Setting ViewingRestrictions |
5859
| [setViewingRestrictionsWindow](#setViewingRestrictionsWindow) | Setting viewingRestrictionsWindow |
@@ -71,6 +72,7 @@ org.rdk.UserSettings interface methods:
7172
| [getCaptions](#getCaptions) | Getting Captions Enabled |
7273
| [getPreferredCaptionsLanguages](#getPreferredCaptionsLanguages) | Getting Preferred Caption Languages |
7374
| [getPreferredClosedCaptionService](#getPreferredClosedCaptionService) | Getting Preferred ClosedCaption Service |
75+
| [getPrivacyMode](#getPrivacyMode) | Getting Privacy Mode |
7476
| [getPinControl](#getPinControl) | Returns Pin Control |
7577
| [getViewingRestrictions](#getViewingRestrictions) | Returns Get Viewing Restrictions |
7678
| [getViewingRestrictionsWindow](#getViewingRestrictionsWindow) | Returns Get Viewing Restrictions Window |
@@ -375,6 +377,54 @@ Setting Preferred Closed Caption Service.
375377
}
376378
```
377379

380+
<a name="setPrivacyMode"></a>
381+
## *setPrivacyMode*
382+
383+
Setting Privacy Mode.
384+
385+
### Events
386+
387+
| Event | Description |
388+
| :-------- | :-------- |
389+
| [onPrivacyModeChanged](#onPrivacyModeChanged) | Triggered when the Privacy Mode changes. |
390+
### Parameters
391+
392+
| Name | Type | Description |
393+
| :-------- | :-------- | :-------- |
394+
| params | object | |
395+
| params.privacyMode | string | The Privacy Mode. Valid values are SHARE, DO_NOT_SHARE |
396+
397+
### Result
398+
399+
| Name | Type | Description |
400+
| :-------- | :-------- | :-------- |
401+
| result | null | On success null will be returned |
402+
403+
### Example
404+
405+
#### Request
406+
407+
```json
408+
{
409+
"jsonrpc": "2.0",
410+
"id": 42,
411+
"method": "org.rdk.UserSettings.setPrivacyMode",
412+
"params": {
413+
"privacyMode": "SHARE"
414+
}
415+
}
416+
```
417+
418+
#### Response
419+
420+
```json
421+
{
422+
"jsonrpc": "2.0",
423+
"id": 42,
424+
"result": null
425+
}
426+
```
427+
378428
<a name="setPinControl"></a>
379429
## *setPinControl*
380430

@@ -1197,6 +1247,47 @@ This method takes no parameters.
11971247
}
11981248
```
11991249

1250+
<a name="getPrivacyMode"></a>
1251+
## *getPrivacyMode*
1252+
1253+
Getting Privacy Mode.
1254+
1255+
### Events
1256+
1257+
No Events
1258+
1259+
### Parameters
1260+
1261+
This method takes no parameters.
1262+
1263+
### Result
1264+
1265+
| Name | Type | Description |
1266+
| :-------- | :-------- | :-------- |
1267+
| result | string | The Privacy Mode. Valid values are SHARE, DO_NOT_SHARE |
1268+
1269+
### Example
1270+
1271+
#### Request
1272+
1273+
```json
1274+
{
1275+
"jsonrpc": "2.0",
1276+
"id": 42,
1277+
"method": "org.rdk.UserSettings.getPrivacyMode"
1278+
}
1279+
```
1280+
1281+
#### Response
1282+
1283+
```json
1284+
{
1285+
"jsonrpc": "2.0",
1286+
"id": 42,
1287+
"result": "SHARE"
1288+
}
1289+
```
1290+
12001291
<a name="getPinControl"></a>
12011292
## *getPinControl*
12021293

@@ -1802,6 +1893,7 @@ org.rdk.UserSettings interface events:
18021893
| [onCaptionsChanged](#onCaptionsChanged) | Triggered after the captions changes (see `SetCaptions`) |
18031894
| [onPreferredCaptionsLanguagesChanged](#onPreferredCaptionsLanguagesChanged) | Triggered after the PreferredCaption Languages changes (see `SetPreferredCaptionsLanguages`) |
18041895
| [onPreferredClosedCaptionServiceChanged](#onPreferredClosedCaptionServiceChanged) | Triggered after the Preferred Closed Caption changes (see `SetPreferredClosedCaptionService`) |
1896+
| [onPrivacyModeChanged](#onPrivacyModeChanged) | Triggered after the Privacy Mode changes (see `SetPrivacyMode`) |
18051897
| [onPinControlChanged](#onPinControlChanged) | Triggered after the pin control changes (see `setPinControl`) |
18061898
| [onViewingRestrictionsChanged](#onViewingRestrictionsChanged) | Triggered after the viewingRestrictions changes (see `setViewingRestrictions`) |
18071899
| [onViewingRestrictionsWindowChanged](#onViewingRestrictionsWindowChanged) | Triggered after the viewingRestrictionsWindow changes (see `setViewingRestrictionsWindow`) |
@@ -1960,6 +2052,30 @@ Triggered after the Preferred Closed Caption changes (see `SetPreferredClosedCap
19602052
}
19612053
```
19622054

2055+
<a name="onPrivacyModeChanged"></a>
2056+
## *onPrivacyModeChanged*
2057+
2058+
Triggered after the Privacy Mode changes (see `SetPrivacyMode`).
2059+
2060+
### Parameters
2061+
2062+
| Name | Type | Description |
2063+
| :-------- | :-------- | :-------- |
2064+
| params | object | |
2065+
| params.privacyMode | string | Receive Privacy Mode changes |
2066+
2067+
### Example
2068+
2069+
```json
2070+
{
2071+
"jsonrpc": "2.0",
2072+
"method": "client.events.onPrivacyModeChanged",
2073+
"params": {
2074+
"privacyMode": "DO_NOT_SHARE"
2075+
}
2076+
}
2077+
```
2078+
19632079
<a name="onPinControlChanged"></a>
19642080
## *onPinControlChanged*
19652081

tools/json_generator/output/SystemServices/System.json

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,35 +1939,6 @@
19391939
"success"
19401940
]
19411941
}
1942-
},
1943-
"SetPrivacyMode": {
1944-
"summary": "Setting Privacy Mode.",
1945-
"events": {
1946-
"onPrivacyModeChanged" : "Triggered when the Privacy Mode changes."
1947-
},
1948-
"params": {
1949-
"type": "object",
1950-
"properties": {
1951-
"privacyMode": {
1952-
"summary": "New Privacy Mode",
1953-
"type": "string",
1954-
"example": "DO_NOT_SHARE"
1955-
}
1956-
}
1957-
},
1958-
"result": {
1959-
"summary": "On success null will be returned",
1960-
"type": "string",
1961-
"example": "null"
1962-
}
1963-
},
1964-
"getPrivacyMode":{
1965-
"summary": "Getting Privacy Mode",
1966-
"result": {
1967-
"summary": "Current Privacy Mode",
1968-
"type": "string",
1969-
"example": "DO_NOT_SHARE"
1970-
}
19711942
}
19721943
},
19731944
"events": {
@@ -2350,22 +2321,6 @@
23502321
"logUploadStatus"
23512322
]
23522323
}
2353-
},
2354-
"onPrivacyModeChanged": {
2355-
"summary": "Triggered after the Privacy Mode changes (see `SetPrivacyMode`)",
2356-
"params": {
2357-
"type": "object",
2358-
"properties": {
2359-
"privacyMode":{
2360-
"summary": "Receive Privacy Mode changes",
2361-
"type": "string",
2362-
"example": "DO_NOT_SHARE"
2363-
}
2364-
},
2365-
"required": [
2366-
"privacyMode"
2367-
]
2368-
}
23692324
}
23702325
}
23712326
}

0 commit comments

Comments
 (0)