Difference between revisions of "Development:Prana Breath API/Collections:Settings"

From Olekdia Wiki
(list)
 
(One intermediate revision by the same user not shown)
Line 26: Line 26:
 
<pre>
 
<pre>
 
Items:
 
Items:
themePref
+
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:
 
|-
 
|-
 
|  
 
|  
==='''themePref'''===
+
==='''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>light</code>
+
* <code>violet</code>
* <code>dark</code>
+
* <code>blue</code>
* <code>blue_light</code>
+
* <code>olive</code>
* <code>blue_dark</code>
+
* <code>gray</code>
* <code>gray_light</code>
+
* <code>green</code>
* <code>gray_dark</code>
+
* <code>yellow</code>
* <code>green_light</code>
+
* <code>red</code>
* <code>green_dark</code>
+
* <code>monochromatic</code>
* <code>olive_light</code>
 
* <code>olive_dark</code>
 
* <code>yellow_light</code>
 
* <code>yellow_dark</code>
 
* <code>red_light</code>
 
* <code>red_dark</code>
 
* <code>white</code>
 
* <code>black</code>
 
 
|-
 
|-
 
|
 
|

Latest revision as of 10:55, 28 November 2019

settings - Сollection that gives control over app's settings.

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.
  • pranabreath://settings?cmd=list
Items:
theme
screenBehaviorPref
notifBehaviorPref
breathMethodsOrientPref
trngChartPref
statChartPref
mutePref
  • pranabreath://settings - 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

Allows to set a specific setting value.
  • pranabreath://settings/trngChartPref?cmd=set&val=asteroids - Set "Asteroids" as a training chart.
  • pranabreath://settings/trngChartPref?val=asteroids - Set "Asteroids" as a training chart. Select is a default command if ?cmd= is omitted.


Items

Item Description

theme

Allows to adjust color theme setting.
  • pranabreath://settings/theme?value=dark - Set purple dark theme.

Possible values:

  • violet
  • blue
  • olive
  • gray
  • green
  • yellow
  • red
  • monochromatic

screenBehaviorPref

Allows to adjust screen during training setting.

Possible values:

  • def
  • off
  • on
  • animCycle
  • animPhase

trngChartPref

Allows to adjust training chart setting.

Possible values:

  • none
  • ring
  • line
  • sphere
  • asteroids

statChartPref

Allows to adjust statistics chart setting.

Possible values:

  • bar
  • line

notifBehaviorPref

Allows to adjust notification during training setting.

Possible values:

  • TIME
  • PROGRESS
  • TIME,PROGRESS

breathMethodsOrientPref

Allows to adjust breath methods setting.

Possible values:

  • 0 - "As it is"
  • 1 - "As in a mirror"

mutePref

Allows to adjust mute setting.

Possible values:

  • true - Mute all sounds within the app.
  • false - Return sounds to normal volume.