From wiki.ginstr.com
Jump to: navigation, search
m
m (formatting)
 
Line 12: Line 12:
 
===Start the chronometer===
 
===Start the chronometer===
  
;<code>[gn:act_startChrono]|[target]</code>
+
:;<code>[gn:act_startChrono]|[target]</code>
  
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| [[target]]
+
| <code>[[target]]</code>
 
| [[target]] where the counter value will be stored
 
| [[target]] where the counter value will be stored
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
Line 26: Line 26:
  
 
====Example====
 
====Example====
<code>@+id/targetwidget</code> - <code>[[GnChronometer]]</code> [[target]]<br><br>
+
:<code>@+id/targetwidget</code> - <code>[[GnChronometer]]</code> [[target]]<br>
<code>[gn:act_startChrono]|[@+id/targetwidget]</code>
+
:; ⤷ <code>[gn:act_startChrono]|[@+id/targetwidget]</code>
 
<hr>
 
<hr>

Latest revision as of 13:52, 12 July 2017

gn:act_startChrono

Description
Action used to start the chronometer to measure time.
If it’s necessary to start the count from 0, gn:act_resetChrono must be called first.
Action returns
void

Action signatures

Start the chronometer

[gn:act_startChrono]|[target]
Parameter Description
target target where the counter value will be stored

Example

@+id/targetwidget - GnChronometer target
[gn:act_startChrono]|[@+id/targetwidget]