From wiki.ginstr.com
Jump to: navigation, search
m
m (formatting)
 
Line 12: Line 12:
 
===Reset the chronometer===
 
===Reset the chronometer===
  
;<code>[gn:act_resetChrono]|[target]</code>
+
:;<code>[gn:act_resetChrono]|[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|target]]
+
| <code>[[target|target]]</code>
 
| [[target]] where the time will be reset
 
| [[target]] where the time will be reset
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
Line 27: Line 27:
  
 
====Example====
 
====Example====
<code>@+id/targetwidget</code> - <code>[[GnChronometer]]</code> [[target]]<br><br>
+
:<code>@+id/targetwidget</code> - <code>[[GnChronometer]]</code> [[target]]<br>
<code>[gn:act_resetChrono]|[@+id/targetwidget]</code>
+
:; ⤷ <code>[gn:act_resetChrono]|[@+id/targetwidget]</code>
 
<hr>
 
<hr>

Latest revision as of 13:50, 12 July 2017

gn:act_resetChrono

Description
Action used to reset the chronometer time to 0.
This action needs to be called each time before counting from 0 in order to reset the counter. Otherwise, once the chronometer is loaded on screen, the base time is set to the time the chronometer appeared on screen.
Action returns
void

Action signatures

Reset the chronometer

[gn:act_resetChrono]|[target]
Parameter Description
target target where the time will be reset

Example

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