Skip to content

Commit 34e54ff

Browse files
authored
Merge pull request #225 from rdkcentral/feature/RDK-57747
RDK-57747: Updated version details.
2 parents d640c8c + 6e0db6b commit 34e54ff

File tree

2 files changed

+168
-9
lines changed

2 files changed

+168
-9
lines changed

docs/apis/UserSettingsPlugin.md

Lines changed: 120 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<a name="UserSettings_Plugin"></a>
33
# UserSettings Plugin
44

5-
**Version: [1.0.0]()**
5+
**Version: [2.3.0](https://github.com/rdkcentral/rdkservices/blob/main/UserSettings/CHANGELOG.md)**
66

77
A org.rdk.UserSettings plugin for Thunder framework.
88

@@ -17,7 +17,7 @@ A org.rdk.UserSettings plugin for Thunder framework.
1717
<a name="Abbreviation,_Acronyms_and_Terms"></a>
1818
# Abbreviation, Acronyms and Terms
1919

20-
[[Refer to this link](overview/aat.md)]
20+
[[Refer to this link](userguide/aat.md)]
2121

2222
<a name="Description"></a>
2323
# Description
@@ -64,6 +64,7 @@ org.rdk.UserSettings interface methods:
6464
| [setVoiceGuidance](#setVoiceGuidance) | Sets voiceGuidance |
6565
| [setVoiceGuidanceRate](#setVoiceGuidanceRate) | Sets voiceGuidanceRate |
6666
| [setVoiceGuidanceHints](#setVoiceGuidanceHints) | Sets voiceGuidanceHints ON/OFF |
67+
| [setContentPin](#setContentPin) | Setting ContentPin |
6768
| [getAudioDescription](#getAudioDescription) | Returns Audio Description |
6869
| [getPreferredAudioLanguages](#getPreferredAudioLanguages) | Returns Preferred Audio Languages |
6970
| [getPresentationLanguage](#getPresentationLanguage) | Getting Presentation Languages |
@@ -83,6 +84,7 @@ org.rdk.UserSettings interface methods:
8384
| [getVoiceGuidanceHints](#getVoiceGuidanceHints) | Gets the current voiceGuidanceHints setting |
8485
| [getMigrationState](#getMigrationState) | Gets the migration state of the respective key |
8586
| [getMigrationStates](#getMigrationStates) | Gets the migration state of all the defined keys |
87+
| [getContentPin](#getContentPin) | Returns ContentPin |
8688

8789

8890
<a name="setAudioDescription"></a>
@@ -901,6 +903,54 @@ Sets voiceGuidanceHints ON/OFF. Whether Voice Guidance hints setting is switched
901903
}
902904
```
903905

906+
<a name="setContentPin"></a>
907+
## *setContentPin*
908+
909+
Setting ContentPin.
910+
911+
### Events
912+
913+
| Event | Description |
914+
| :-------- | :-------- |
915+
| [onContentPinChanged](#onContentPinChanged) | Triggered when the ContentPin changes. |
916+
### Parameters
917+
918+
| Name | Type | Description |
919+
| :-------- | :-------- | :-------- |
920+
| params | object | |
921+
| params.contentPin | string | contentPin |
922+
923+
### Result
924+
925+
| Name | Type | Description |
926+
| :-------- | :-------- | :-------- |
927+
| result | string | On success null will be returned |
928+
929+
### Example
930+
931+
#### Request
932+
933+
```json
934+
{
935+
"jsonrpc": "2.0",
936+
"id": 42,
937+
"method": "org.rdk.UserSettings.setContentPin",
938+
"params": {
939+
"contentPin": "1234"
940+
}
941+
}
942+
```
943+
944+
#### Response
945+
946+
```json
947+
{
948+
"jsonrpc": "2.0",
949+
"id": 42,
950+
"result": "null"
951+
}
952+
```
953+
904954
<a name="getAudioDescription"></a>
905955
## *getAudioDescription*
906956

@@ -1664,8 +1714,8 @@ This method takes no parameters.
16641714
| :-------- | :-------- | :-------- |
16651715
| result | array | migration state of all the defined keys |
16661716
| result[#] | object | Keys and it's migration states |
1667-
| result[#].key | string | key of the property |
1668-
| result[#].requiresMigration | boolean | Migration State Of the Property |
1717+
| result[#]?.key | string | <sup>*(optional)*</sup> key of the property |
1718+
| result[#]?.requiresMigration | boolean | <sup>*(optional)*</sup> migration state of the property |
16691719

16701720
### Example
16711721

@@ -1694,6 +1744,47 @@ This method takes no parameters.
16941744
}
16951745
```
16961746

1747+
<a name="getContentPin"></a>
1748+
## *getContentPin*
1749+
1750+
Returns ContentPin.
1751+
1752+
### Events
1753+
1754+
No Events
1755+
1756+
### Parameters
1757+
1758+
This method takes no parameters.
1759+
1760+
### Result
1761+
1762+
| Name | Type | Description |
1763+
| :-------- | :-------- | :-------- |
1764+
| result | string | contentPin |
1765+
1766+
### Example
1767+
1768+
#### Request
1769+
1770+
```json
1771+
{
1772+
"jsonrpc": "2.0",
1773+
"id": 42,
1774+
"method": "org.rdk.UserSettings.getContentPin"
1775+
}
1776+
```
1777+
1778+
#### Response
1779+
1780+
```json
1781+
{
1782+
"jsonrpc": "2.0",
1783+
"id": 42,
1784+
"result": "1234"
1785+
}
1786+
```
1787+
16971788
<a name="Notifications"></a>
16981789
# Notifications
16991790

@@ -1722,6 +1813,7 @@ org.rdk.UserSettings interface events:
17221813
| [onVoiceGuidanceChanged](#onVoiceGuidanceChanged) | Triggered after the voice guidance enabled settings changes |
17231814
| [onVoiceGuidanceRateChanged](#onVoiceGuidanceRateChanged) | Triggered after the voice guidance rate changed |
17241815
| [onVoiceGuidanceHintsChanged](#onVoiceGuidanceHintsChanged) | Triggered after the voice guidance hints changes |
1816+
| [onContentPinChanged](#onContentPinChanged) | Triggered after the ContentPin changes (see `setContentPin`) |
17251817

17261818

17271819
<a name="onAudioDescriptionChanged"></a>
@@ -2132,3 +2224,27 @@ Triggered after the voice guidance hints changes.(see `SetVoiceGuidanceHints`).
21322224
}
21332225
```
21342226

2227+
<a name="onContentPinChanged"></a>
2228+
## *onContentPinChanged*
2229+
2230+
Triggered after the ContentPin changes (see `setContentPin`).
2231+
2232+
### Parameters
2233+
2234+
| Name | Type | Description |
2235+
| :-------- | :-------- | :-------- |
2236+
| params | object | |
2237+
| params.contentPin | string | contentPin |
2238+
2239+
### Example
2240+
2241+
```json
2242+
{
2243+
"jsonrpc": "2.0",
2244+
"method": "client.events.onContentPinChanged",
2245+
"params": {
2246+
"contentPin": "1234"
2247+
}
2248+
}
2249+
```
2250+

tools/json_generator/output/UserSettings/UserSettings.json

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@
4646
"type": "number",
4747
"example": 0.1
4848
},
49-
"MigrationStates": {
49+
"contentPin": {
50+
"summary": "contentPin",
51+
"type": "string",
52+
"example": "1234"
53+
},
54+
"MigrationStates": {
5055
"summary": "Keys and it's migration states",
5156
"type": "object",
5257
"properties": {
@@ -56,7 +61,7 @@
5661
"example": "PREFERRED_AUDIO_LANGUAGES"
5762
},
5863
"requiresMigration": {
59-
"summary": "The name of the USB device",
64+
"summary": "migration state of the property",
6065
"type": "boolean",
6166
"example": true
6267
}
@@ -408,6 +413,25 @@
408413
"example": "null"
409414
}
410415
},
416+
"setContentPin": {
417+
"summary": "Setting ContentPin.",
418+
"events": {
419+
"onContentPinChanged" : "Triggered when the ContentPin changes."
420+
},
421+
"params": {
422+
"type": "object",
423+
"properties": {
424+
"contentPin": {
425+
"$ref": "#/definitions/contentPin"
426+
}
427+
}
428+
},
429+
"result": {
430+
"summary": "On success null will be returned",
431+
"type": "string",
432+
"example": "null"
433+
}
434+
},
411435
"getAudioDescription":
412436
{
413437
"summary": "Returns Audio Description.",
@@ -545,7 +569,7 @@
545569
"example": "VOICE_GUIDANCE_RATE"
546570
}
547571
},
548-
"required": ["deviceName"]
572+
"required": ["key"]
549573
},
550574
"result": {
551575
"summary": "migration state of the respective key true/false",
@@ -563,6 +587,12 @@
563587
"$ref": "#/definitions/MigrationStates"
564588
}
565589
}
590+
},
591+
"getContentPin":{
592+
"summary": "Returns ContentPin.",
593+
"result": {
594+
"$ref": "#/definitions/contentPin"
595+
}
566596
}
567597
},
568598
"events": {
@@ -833,8 +863,21 @@
833863
},
834864
"required": [ "hints" ]
835865
}
836-
}
866+
},
867+
"onContentPinChanged": {
868+
"summary": "Triggered after the ContentPin changes (see `setContentPin`)",
869+
"params": {
870+
"type": "object",
871+
"properties": {
872+
"contentPin": {
873+
"$ref": "#/definitions/contentPin"
874+
}
875+
},
876+
"required": [
877+
"contentPin"
878+
]
879+
}
880+
}
837881
}
838882
}
839883

840-

0 commit comments

Comments
 (0)