Class Point
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPoint.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringTAG_EXTRA_CALLBACKpublic final static StringTAG_EXTRA_ON_DISPLAYprivate Locationlocationprivate GeocachingDatagcDataprivate ByteArraygcDataBinaryprivate final StringextraCallbackprivate final StringextraOnDisplayprivate Longidprivate Stringnameprivate LongtimeCreatedprivate LongtimeUpdatedprivate GeoDataExtraextraDataprivate GeoDataStylestyleNormalprivate GeoDataStylestyleHighlightprivate GeoData.Privacyprivacyprivate Booleanprotectedprivate BooleanisEnabledprivate BooleanisVisibleprivate BooleanisSelectedprivate ByteArrayextraDataRawprivate ByteArraystylesprivate final Storablecopyprivate final ByteArrayasBytespublic final static Point.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final LocationgetLocation()Location of current point. final UnitsetLocation(Location location)Location of current point. final GeocachingDatagetGcData()Additional geoCaching data. final UnitsetGcData(GeocachingData gcData)Additional geoCaching data. final ByteArraygetGcDataBinary()final UnitsetGcDataBinary(ByteArray gcDataBinary)final StringgetExtraCallback()final StringgetExtraOnDisplay()final UnitsetExtraCallback(String btnName, String packageName, String className, String returnDataName, String returnDataValue)Simply allow set callback value on point. final UnitremoveExtraCallback()If you want to remove PAR_INTENT_EXTRA_CALLBACK parametr from Locus database, you need to send "clear" value in updated waypoint back to Locus. final UnitsetExtraOnDisplay(String packageName, String className, String returnDataName, String returnDataValue)Extra feature that allow to send to locus only partial point data. final UnitremoveExtraOnDisplay()If you want to remove PAR_INTENT_EXTRA_ON_DISPLAY parameter from Locus database, you need to send "clear" value in updated waypoint back to Locus. -
Methods inherited from class locus.api.objects.geoData.GeoData
addParameter, addParameter, addParameter, getExtraData, getExtraDataRaw, getId, getName, getParameter, getParameterRaw, getPrivacy, getProtected, getStyleHighlight, getStyleNormal, getStyles, getTag, getTag, getTagsKeys, getTimeCreated, getTimeUpdated, hasParameter, isEnabled, isSelected, isVisible, removeParameter, setEnabled, setExtraData, setExtraDataRaw, setId, setName, setPrivacy, setProtected, setSelected, setStyleHighlight, setStyleNormal, setStyles, setTag, setTag, setTimeCreated, setTimeUpdated, setVisible -
Methods inherited from class locus.api.objects.Storable
getAsBytes, getCopy, read, read, read, write -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getLocation
final Location getLocation()
Location of current point.
-
setLocation
final Unit setLocation(Location location)
Location of current point.
-
getGcData
final GeocachingData getGcData()
Additional geoCaching data.
-
setGcData
final Unit setGcData(GeocachingData gcData)
Additional geoCaching data.
-
getGcDataBinary
final ByteArray getGcDataBinary()
-
setGcDataBinary
final Unit setGcDataBinary(ByteArray gcDataBinary)
-
getExtraCallback
final String getExtraCallback()
-
getExtraOnDisplay
final String getExtraOnDisplay()
-
setExtraCallback
final Unit setExtraCallback(String btnName, String packageName, String className, String returnDataName, String returnDataValue)
Simply allow set callback value on point. This appear when you click on point and then under last button will be your button. Clicking on it, launch by you, defined intent <br></br><br></br> Do not forget to set this http://developer.android.com/guide/topics/manifest/activity-element.html#exported to your activity, if you'll set callback to other then launcher activity
- Parameters:
btnName- Name displayed on buttonpackageName- this value is used for creating intent that will be called in callback (for example com.super.className- the name of the class inside of com.super.application that implements the component (for example com.super.application.returnDataName- String under which data will be stored.returnDataValue- String under which data will be stored.
-
removeExtraCallback
final Unit removeExtraCallback()
If you want to remove PAR_INTENT_EXTRA_CALLBACK parametr from Locus database, you need to send "clear" value in updated waypoint back to Locus. After that, Locus will remove this parameter from new stored point. <br></br><br></br> Second alternative, how to remove this callback, is to send new waypoints with forceOverwrite parameter set to
true, that will overwrite completely all data
-
setExtraOnDisplay
final Unit setExtraOnDisplay(String packageName, String className, String returnDataName, String returnDataValue)
Extra feature that allow to send to locus only partial point data. When you click on point (in time when small point dialog should appear), locus send intent to your app, you can then fill complete point and send it back to Locus. Clear and clever <br></br><br></br> Do not forget to set this http://developer.android.com/guide/topics/manifest/activity-element.html#exported to your activity, if you'll set callback to other then launcher activity
- Parameters:
packageName- this value is used for creating intent that will be called in callback (for example com.super.className- the name of the class inside of com.super.application that implements the component (for example com.super.application.returnDataName- String under which data will be stored.returnDataValue- value that will be received when you try to get data from received response
-
removeExtraOnDisplay
final Unit removeExtraOnDisplay()
If you want to remove PAR_INTENT_EXTRA_ON_DISPLAY parameter from Locus database, you need to send "clear" value in updated waypoint back to Locus. After that, Locus will remove this parameter from new stored point. <br></br><br></br> Second alternative, how to remove this callback, is to send new waypoints with forceOverwrite parameter set to
true, that will overwrite completely all data
-
-
-
-