public class NearField extends AndroidNonvisibleComponent implements OnStopListener, OnResumeListener, OnPauseListener, OnNewIntentListener, Deleteable
| Modifier and Type | Field and Description |
|---|---|
protected int |
requestCode |
formACCELEROMETER_SENSITIVITY_MODERATE, ACCELEROMETER_SENSITIVITY_STRONG, ACCELEROMETER_SENSITIVITY_WEAK, ALIGNMENT_CENTER, ALIGNMENT_NORMAL, ALIGNMENT_OPPOSITE, ASSET_DIRECTORY, BUTTON_SHAPE_DEFAULT, BUTTON_SHAPE_OVAL, BUTTON_SHAPE_RECT, BUTTON_SHAPE_ROUNDED, COLOR_BLACK, COLOR_BLUE, COLOR_CYAN, COLOR_DEFAULT, COLOR_DKGRAY, COLOR_GRAY, COLOR_GREEN, COLOR_LTGRAY, COLOR_MAGENTA, COLOR_NONE, COLOR_ORANGE, COLOR_PINK, COLOR_RED, COLOR_WHITE, COLOR_YELLOW, DEFAULT_VALUE_COLOR_BLACK, DEFAULT_VALUE_COLOR_BLUE, DEFAULT_VALUE_COLOR_CYAN, DEFAULT_VALUE_COLOR_DEFAULT, DEFAULT_VALUE_COLOR_DKGRAY, DEFAULT_VALUE_COLOR_GRAY, DEFAULT_VALUE_COLOR_GREEN, DEFAULT_VALUE_COLOR_LTGRAY, DEFAULT_VALUE_COLOR_MAGENTA, DEFAULT_VALUE_COLOR_NONE, DEFAULT_VALUE_COLOR_ORANGE, DEFAULT_VALUE_COLOR_PINK, DEFAULT_VALUE_COLOR_RED, DEFAULT_VALUE_COLOR_WHITE, DEFAULT_VALUE_COLOR_YELLOW, DIRECTION_EAST, DIRECTION_MAX, DIRECTION_MIN, DIRECTION_NONE, DIRECTION_NORTH, DIRECTION_NORTHEAST, DIRECTION_NORTHWEST, DIRECTION_SOUTH, DIRECTION_SOUTHEAST, DIRECTION_SOUTHWEST, DIRECTION_WEST, FONT_DEFAULT_SIZE, LAYOUT_ORIENTATION_HORIZONTAL, LAYOUT_ORIENTATION_VERTICAL, LENGTH_FILL_PARENT, LENGTH_PREFERRED, LENGTH_UNKNOWN, SLIDER_MAX_VALUE, SLIDER_MIN_VALUE, SLIDER_THUMB_VALUE, TOAST_LENGTH_LONG, TOAST_LENGTH_SHORT, TYPEFACE_DEFAULT, TYPEFACE_MONOSPACE, TYPEFACE_SANSSERIF, TYPEFACE_SERIF| Constructor and Description |
|---|
NearField(ComponentContainer container)
Creates a new NearField component
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
LastMessage()
Returns the content of the most recently received tag.
|
void |
onDelete() |
void |
onNewIntent(android.content.Intent intent) |
void |
onPause() |
void |
onResume() |
void |
onStop() |
boolean |
ReadMode()
Returns true if in read mode, false if in write mode.
|
void |
ReadMode(boolean newMode)
Allows the user to set read/write mode
|
void |
TagRead(java.lang.String message)
Indicates that a new tag has been detected.
|
void |
TagWritten() |
java.lang.String |
TextToWrite()
Returns the content of the text that's going to be written to the tag.
|
void |
TextToWrite(java.lang.String newText)
Allows the user to set the content of the tag that will be written
|
int |
WriteType() |
getDispatchDelegatepublic NearField(ComponentContainer container)
container - ignored (because this is a non-visible component)public void TagRead(java.lang.String message)
public void TagWritten()
public java.lang.String LastMessage()
public boolean ReadMode()
public java.lang.String TextToWrite()
public int WriteType()
public void ReadMode(boolean newMode)
public void TextToWrite(java.lang.String newText)
public void onNewIntent(android.content.Intent intent)
onNewIntent in interface OnNewIntentListenerpublic void onResume()
onResume in interface OnResumeListenerpublic void onPause()
onPause in interface OnPauseListenerpublic void onDelete()
onDelete in interface Deleteablepublic void onStop()
onStop in interface OnStopListener