Difference between revisions of "Development:Prana Breath API/Collections:Settings"
From Olekdia Wiki
(→statChartPref) |
(→list) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <code>settings</code> - | + | <code>settings</code> - Сollection that gives control over app's [[Settings_tab|settings]].<br/> |
__TOC__ | __TOC__ | ||
Line 6: | Line 6: | ||
== Prefix == | == Prefix == | ||
* <code>pranabreath://</code> | * <code>pranabreath://</code> | ||
− | * <code><nowiki>https://olekdia.com | + | * <code><nowiki>https://pranabreath.olekdia.com/</nowiki></code> |
− | * <code><nowiki>https://pranabreath.page.link/?link=https://olekdia.com | + | * <code><nowiki>https://pranabreath.page.link/?link=https://pranabreath.olekdia.com/</nowiki></code> |
== Syntax == | == Syntax == | ||
* <code>pranabreath://settings/item?val=[Value]</code> - Case-insensitive. | * <code>pranabreath://settings/item?val=[Value]</code> - Case-insensitive. | ||
* <code>pranabreath://settings/item?cmd=[Command]&val=[Value]</code> | * <code>pranabreath://settings/item?cmd=[Command]&val=[Value]</code> | ||
− | * <code><nowiki>https://olekdia.com | + | * <code><nowiki>https://pranabreath.olekdia.com/settings?val=[Value]</nowiki></code> - Case-sensitive. |
== Commands == | == Commands == | ||
Line 22: | Line 22: | ||
| | | | ||
==='''list'''=== | ==='''list'''=== | ||
− | | Returns settings list. Currently it is only | + | | Returns settings list. Currently it is used only in console for retrieving settings list. |
* <code>pranabreath://settings?cmd=list</code> | * <code>pranabreath://settings?cmd=list</code> | ||
<pre> | <pre> | ||
Items: | Items: | ||
− | + | theme | |
screenBehaviorPref | screenBehaviorPref | ||
notifBehaviorPref | notifBehaviorPref | ||
Line 34: | Line 34: | ||
mutePref | mutePref | ||
</pre> | </pre> | ||
− | * <code>pranabreath://settings</code> - It is a default command | + | * <code>pranabreath://settings</code> - It is a default command if ''collection'' is defined without an ''item'', so if we omit the ''command'' it will return the same result. |
|- | |- | ||
− | | | + | | |
+ | |||
==='''set'''=== | ==='''set'''=== | ||
| Allows to set a specific setting value. | | Allows to set a specific setting value. | ||
− | * <code>pranabreath://settings/trngChartPref?cmd=set&val=asteroids</code> - Set "Asteroids" [[Settings_tab#Training_chart|training chart]]. | + | * <code>pranabreath://settings/trngChartPref?cmd=set&val=asteroids</code> - Set "Asteroids" as a [[Settings_tab#Training_chart|training chart]]. |
− | * <code>pranabreath://settings/trngChartPref?val=asteroids</code> - | + | * <code>pranabreath://settings/trngChartPref?val=asteroids</code> - Set "Asteroids" as a [[Settings_tab#Training_chart|training chart]]. ''Select'' is a default command if ?cmd= is omitted. |
|} | |} | ||
Line 51: | Line 52: | ||
|- | |- | ||
| | | | ||
− | ===''' | + | ==='''theme'''=== |
− | | Allows to adjust [[Settings_tab#Theme|theme]] setting. | + | | Allows to adjust [[Settings_tab#Theme|color theme]] setting. |
* <code>pranabreath://settings/theme?value=dark</code> - Set purple dark theme.<br/> | * <code>pranabreath://settings/theme?value=dark</code> - Set purple dark theme.<br/> | ||
Possible values: | Possible values: | ||
− | * <code> | + | * <code>violet</code> |
− | * <code> | + | * <code>blue</code> |
− | * <code> | + | * <code>olive</code> |
− | * <code> | + | * <code>gray</code> |
− | * <code> | + | * <code>green</code> |
− | * <code> | + | * <code>yellow</code> |
− | * <code> | + | * <code>red</code> |
− | * <code> | + | * <code>monochromatic</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| | | | ||
Line 105: | Line 98: | ||
==='''notifBehaviorPref'''=== | ==='''notifBehaviorPref'''=== | ||
− | | | + | | Allows to adjust [[Settings_tab#Notification|notification during training]] setting.<br/> |
+ | Possible values: | ||
+ | * <code>TIME</code> | ||
+ | * <code>PROGRESS</code> | ||
+ | * <code>TIME,PROGRESS</code> | ||
|- | |- | ||
− | | | + | | |
+ | |||
==='''breathMethodsOrientPref'''=== | ==='''breathMethodsOrientPref'''=== | ||
− | | | + | | Allows to adjust [[Settings_tab#Breath_methods|breath methods]] setting.<br/> |
+ | Possible values: | ||
+ | * <code>0</code> - "As it is" | ||
+ | * <code>1</code> - "As in a mirror" | ||
|- | |- | ||
− | | | + | | |
+ | |||
==='''mutePref'''=== | ==='''mutePref'''=== | ||
− | | | + | | Allows to adjust mute setting.<br/> |
+ | Possible values: | ||
+ | * <code>true</code> - Mute all sounds within the app. | ||
+ | * <code>false</code> - Return sounds to normal volume. | ||
|} | |} | ||
{{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^]] |
Latest revision as of 10:55, 28 November 2019
settings
- Сollection that gives control over app's settings.
Contents
Prefix
pranabreath://
https://pranabreath.olekdia.com/
https://pranabreath.page.link/?link=https://pranabreath.olekdia.com/
Syntax
pranabreath://settings/item?val=[Value]
- Case-insensitive.pranabreath://settings/item?cmd=[Command]&val=[Value]
https://pranabreath.olekdia.com/settings?val=[Value]
- Case-sensitive.
Commands
Command | Description |
---|---|
list |
Returns settings list. Currently it is used only in console for retrieving settings list.
Items: theme screenBehaviorPref notifBehaviorPref breathMethodsOrientPref trngChartPref statChartPref mutePref
|
set |
Allows to set a specific setting value.
|
Items
Item | Description |
---|---|
theme |
Allows to adjust color theme setting.
Possible values:
|
screenBehaviorPref |
Allows to adjust screen during training setting. Possible values:
|
trngChartPref |
Allows to adjust training chart setting. Possible values:
|
statChartPref |
Allows to adjust statistics chart setting. Possible values:
|
notifBehaviorPref |
Allows to adjust notification during training setting. Possible values:
|
breathMethodsOrientPref |
Allows to adjust breath methods setting. Possible values:
|
mutePref |
Allows to adjust mute setting. Possible values:
|