Difference between revisions of "Development:Prana Breath API/Collections:Settings"
From Olekdia Wiki
(→list) |
|||
(2 intermediate revisions by the same user not shown) | |||
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 26: | Line 26: | ||
<pre> | <pre> | ||
Items: | Items: | ||
− | + | theme | |
screenBehaviorPref | screenBehaviorPref | ||
notifBehaviorPref | notifBehaviorPref | ||
Line 36: | Line 36: | ||
* <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. | * <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. | ||
Line 51: | Line 52: | ||
|- | |- | ||
| | | | ||
− | ===''' | + | ==='''theme'''=== |
| Allows to adjust [[Settings_tab#Theme|color 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> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| | | |
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:
|