Difference between revisions of "Development:Prana Breath API/Collections:Settings"
From Olekdia Wiki
(Created page with "<code>settings</code> - collection that gives you control over app's settings.<br/> __TOC__ <div class="api-table long-code"> == Prefix == * <code>pranabreath://</code> * <c...") |
|||
Line 10: | Line 10: | ||
== Syntax == | == Syntax == | ||
− | * <code>pranabreath://settings/item? | + | * <code>pranabreath://settings/item?val=[Value]</code> - Case-insensitive. |
− | * <code><nowiki>https://olekdia.com/pranabreath/settings? | + | * <code>pranabreath://settings/item?cmd=[Command]&val=[Value]</code> |
+ | * <code><nowiki>https://olekdia.com/pranabreath/settings?val=[Value]</nowiki></code> - Case-sensitive. | ||
== Commands == | == Commands == | ||
Line 21: | Line 22: | ||
| | | | ||
==='''list'''=== | ==='''list'''=== | ||
− | | | + | | Returns settings list. Currently it is only used in console for retrieving settings list. |
− | * <code>pranabreath:// | + | * <code>pranabreath://settings?cmd=list</code> |
<pre> | <pre> | ||
− | + | Items: | |
− | + | themePref | |
− | + | screenBehaviorPref | |
− | + | notifBehaviorPref | |
− | + | breathMethodsOrientPref | |
− | + | trngChartPref | |
+ | statChartPref | ||
+ | mutePref | ||
</pre> | </pre> | ||
− | * <code>pranabreath:// | + | * <code>pranabreath://settings</code> - It is a default command when only ''collection'' is defined without an ''item'', so if we omit the ''command'' it will return the same result. |
|- | |- | ||
| | | | ||
− | ===''' | + | ==='''set'''=== |
− | | | + | | Allows to set a specific setting value. |
− | * <code>pranabreath:// | + | * <code>pranabreath://settings/trngChartPref?cmd=set&val=asteroids</code> - Set "Asteroids" [[Settings_tab#Training_chart|training chart]]. |
− | * <code>pranabreath:// | + | * <code>pranabreath://settings/trngChartPref?val=asteroids</code> - It is default command when ''item'' is specified, so it will have the same impact that above example. |
|} | |} | ||
Line 55: | Line 58: | ||
| | | | ||
==='''screenBehaviorPref'''=== | ==='''screenBehaviorPref'''=== | ||
− | | | + | | TODO |
+ | |- | ||
+ | | | ||
+ | ==='''trngChartPref'''=== | ||
+ | | TODO | ||
+ | |- | ||
+ | | | ||
+ | ==='''statChartPref'''=== | ||
+ | | TODO | ||
+ | |- | ||
+ | | | ||
+ | ==='''notifBehaviorPref'''=== | ||
+ | | TODO | ||
+ | |- | ||
+ | | | ||
+ | ==='''breathMethodsOrientPref'''=== | ||
+ | | TODO | ||
+ | |- | ||
+ | | | ||
+ | ==='''mutePref'''=== | ||
+ | | TODO | ||
|} | |} | ||
{{DISPLAYTITLE:<span style="position:absolute; top:-9999px;">Development:</span>Prana Breath API/Collections:Settings}} | {{DISPLAYTITLE:<span style="position:absolute; top:-9999px;">Development:</span>Prana Breath API/Collections:Settings}} | ||
[[Category:Dev{{#translation:}}|^Prana Breath^]] | [[Category:Dev{{#translation:}}|^Prana Breath^]] |
Revision as of 12:49, 1 February 2019
settings
- collection that gives you control over app's settings.
Contents
Prefix
pranabreath://
https://olekdia.com/pranabreath/
https://pranabreath.page.link/?link=https://olekdia.com/pranabreath/
Syntax
pranabreath://settings/item?val=[Value]
- Case-insensitive.pranabreath://settings/item?cmd=[Command]&val=[Value]
https://olekdia.com/pranabreath/settings?val=[Value]
- Case-sensitive.
Commands
Command | Description |
---|---|
list |
Returns settings list. Currently it is only used in console for retrieving settings list.
Items: themePref screenBehaviorPref notifBehaviorPref breathMethodsOrientPref trngChartPref statChartPref mutePref
|
set |
Allows to set a specific setting value.
|
Items
Item | Description |
---|---|
themePref |
Allows to adjust theme of the app.
|
screenBehaviorPref |
TODO |
trngChartPref |
TODO |
statChartPref |
TODO |
notifBehaviorPref |
TODO |
breathMethodsOrientPref |
TODO |
mutePref |
TODO |