- Widget XML tag
GnNfcEmulatoris used to simulate NFC scans and consists of two text input fields and a button.
- In the first text field, user should enter
nfcId. In the second text field, user should enter NFC content. By pressing the button, a NFC-like event will be dispatched within the application.
XML Attributes Description
|| Points to an XML file in “control” folder of ginstr app
<com.ginstr.widgets.GnNfcEmulator android:id="@+id/myEmulator" android:layout_width="wrap_content" android:layout_height="wrap_content" />
Enabling emulation widgets
- To enable loading of emulation widgets on development, integration and staging server, open ginstr launcher Preferences screen and tick checkbox "emulation widgets" and then relaunch the application.
- On production apk of ginstr launcher, loading of emulation widgets requires "common.xml" to be saved within "settings" folder, containing the following entry:
- Alternative layout can be set into control folder. It must have valid XML structure.