From wiki.ginstr.com
Jump to: navigation, search
m
m (formatting)
 
Line 10: Line 10:
 
===Set chronometer base time by <code>Long</code> value===
 
===Set chronometer base time by <code>Long</code> value===
  
;<code>[gn:act_setChrono]|[target,number]</code>
+
:;<code>[gn:act_setChrono]|[target,number]</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 <code>number</code> will be set
 
| [[target]] where the <code>number</code> will be set
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
 
** <code>[[GnChronometer]]</code>
 
** <code>[[GnChronometer]]</code>
 
|-
 
|-
| number
+
| <code>number</code>
 
| time in miliseconds used to set <code>[[GnChronometer]]</code> base time
 
| time in miliseconds used to set <code>[[GnChronometer]]</code> base time
 
|-
 
|-
Line 28: Line 28:
  
 
====Example====
 
====Example====
<code>@+id/chronoWidget</code> - <code>[[GnChronometer]]</code><br>
+
:<code>@+id/chronoWidget</code> - <code>[[GnChronometer]]</code><br>
<code>timeInMiliseconds</code> - time in miliseconds<br><br>
+
:<code>timeInMiliseconds</code> - time in miliseconds<br>
<code>[gn:act_setChrono]|[@+id/chronoWidget,timeInMiliseconds]</code>
+
:; ⤷ <code>[gn:act_setChrono]|[@+id/chronoWidget,timeInMiliseconds]</code>
 
<hr>
 
<hr>
  
 
===Set chronometer base time by <code>source</code> widget===
 
===Set chronometer base time by <code>source</code> widget===
  
;<code>[gn:act_setChrono]|[target,source]</code>
+
:;<code>[gn:act_setChrono]|[target,source]</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 base time will be set
 
| [[target]] where the base time will be set
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
 
** [[GnChronometer]]
 
** [[GnChronometer]]
 
|-
 
|-
| [[source]]
+
| <code>[[source]]</code>
 
| [[source]] from where <code>[[GnChronometer]]</code> base time will be set
 
| [[source]] from where <code>[[GnChronometer]]</code> base time will be set
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
Line 55: Line 55:
  
 
====Example====
 
====Example====
<code>@+id/chronoWidget</code> - <code>[[GnChronometer]]</code><br>
+
:<code>@+id/chronoWidget</code> - <code>[[GnChronometer]]</code><br>
<code>@+id/GnEditTextWithTimeStamp</code> - <code>[[GnEditText]]</code><br><br>
+
:<code>@+id/GnEditTextWithTimeStamp</code> - <code>[[GnEditText]]</code><br>
<code>[gn:act_setChrono]|[@+id/chronoWidget,@+id/GnEditTextWithTimeStamp]</code>
+
:; ⤷ <code>[gn:act_setChrono]|[@+id/chronoWidget,@+id/GnEditTextWithTimeStamp]</code>
 
<hr>
 
<hr>
  
 
===Set chronometer base time by <code>source</code> widget and <code>Long</code> value===
 
===Set chronometer base time by <code>source</code> widget and <code>Long</code> value===
  
;<code>[gn:act_setChrono]|[target,source,number]</code>
+
:;<code>[gn:act_setChrono]|[target,source,number]</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 base time will be set
 
| [[target]] where the base time will be set
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
 
** <code>[[GnChronometer]]</code>
 
** <code>[[GnChronometer]]</code>
 
|-
 
|-
| [[source]]
+
| <code>[[source]]</code>
 
| [[source]] from where <code>[[GnChronometer]]</code> base time will be set
 
| [[source]] from where <code>[[GnChronometer]]</code> base time will be set
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
Line 85: Line 85:
  
 
====Example====
 
====Example====
<code>@+id/chronoWidget</code> - <code>[[GnChronometer]]</code><br>
+
:<code>@+id/chronoWidget</code> - <code>[[GnChronometer]]</code><br>
<code>@+id/GnEditTextWithTimeStamp</code> - <code>[[GnEditText]]</code><br>
+
:<code>@+id/GnEditTextWithTimeStamp</code> - <code>[[GnEditText]]</code><br>
<code>timeInMiliseconds</code> - time in miliseconds<br><br>
+
:<code>timeInMiliseconds</code> - time in miliseconds<br>
<code>[gn:act_setChrono]|[@+id/chronoWidget,@+id/GnEditTextWithTimeStamp,timeInMiliseconds]</code>
+
:; ⤷ <code>[gn:act_setChrono]|[@+id/chronoWidget,@+id/GnEditTextWithTimeStamp,timeInMiliseconds]</code>
 
<hr>
 
<hr>

Latest revision as of 13:54, 12 July 2017

gn:act_setChrono

Description
Action used to set GnChronometer to a certain start time.
Action returns
void

Action signatures

Set chronometer base time by Long value

[gn:act_setChrono]|[target,number]
Parameter Description
target target where the number will be set
number time in miliseconds used to set GnChronometer base time

Example

@+id/chronoWidget - GnChronometer
timeInMiliseconds - time in miliseconds
[gn:act_setChrono]|[@+id/chronoWidget,timeInMiliseconds]

Set chronometer base time by source widget

[gn:act_setChrono]|[target,source]
Parameter Description
[[target]] target where the base time will be set
source source from where GnChronometer base time will be set

Example

@+id/chronoWidget - GnChronometer
@+id/GnEditTextWithTimeStamp - GnEditText
[gn:act_setChrono]|[@+id/chronoWidget,@+id/GnEditTextWithTimeStamp]

Set chronometer base time by source widget and Long value

[gn:act_setChrono]|[target,source,number]
Parameter Description
target target where the base time will be set
source source from where GnChronometer base time will be set
number time in miliseconds used to set GnChronometer base time

Example

@+id/chronoWidget - GnChronometer
@+id/GnEditTextWithTimeStamp - GnEditText
timeInMiliseconds - time in miliseconds
[gn:act_setChrono]|[@+id/chronoWidget,@+id/GnEditTextWithTimeStamp,timeInMiliseconds]