Widget obtains gps coordinates from gps module. After location is retrieved nominatim server is contacted to fetch the address and address is stored into the widget. Widget is hidden.
Widget id, ${widgetID}:
auditAddress
Back to ginstr app composer reference
Predefined user data
PreLoaded
AutoLoaded data which is known:
- ${pageName} - name of the page to which widgets are added
Properties panel
User will configure this data in properties panels of selected widget:
GENERAL:
- ${widgetLabel} - name of the widget user added to the screen
Code snippets
Common widget code
<com.ginstr.widgets.GnEditText android:id="@+id/${pageName}$_{widgetLabel}_input" android:layout_width="match_parent" android:layout_height="wrap_content" gn:s_sourceType="gps" gn:dataType="text" gn:visible="false" gn:showAddress="true" />