From wiki.ginstr.com
Revision as of 17:12, 20 July 2017 by Dinko (talk | contribs) (Created page with "<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> <span STYLE="font-size: xx-large"><code>gn:act_calculateDrivingDistance</code></span> Category:Action_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

gn:act_calculateDrivingDistance

Description
Action is used to get ginstr user data and store it into target
Action returns
void

Action signatures

Gets ginstr user data

[gn:act_getUserData]|[target,keyword]
Parameter Description
target target into which user data will be stored
keyword defines which type of ginstr user information we will retrieve

Can be:

Example

screen.xml
<FrameLayout
    android:id="@+id/exampleFrame"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:visibility="gone"
    gn:act_set="[gn:act_getUserData]|[@+id/testWidget,dateFormat]" />

<com.ginstr.widgets.GnTextView
    android:id="@+id/testWidget" 
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>

after action execution

value in testWidget: dd MMM yyyy (depends on setting in ginstr web)