-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPoint.Companion
-
Field Summary
Fields Modifier and Type Field Description private Locationlocationprivate GeocachingDatagcDataprivate ByteArraygcDataBinaryprivate final StringextraCallbackprivate final StringextraOnDisplayprivate Longidprivate Stringnameprivate LongtimeCreatedprivate LongtimeUpdatedprivate GeoDataExtraextraDataprivate GeoDataStylestyleNormalprivate GeoDataStylestyleHighlightprivate GeoData.Privacyprivacyprivate Booleanprotectedprivate BooleanisEnabledprivate BooleanisVisibleprivate BooleanisSelectedprivate ByteArrayextraDataRawprivate ByteparameterSourceprivate StringparameterStyleNameprivate StringparameterDescriptionprivate PointRteActionparameterRteActionprivate final IntegerparamRteIndexprivate ByteArraystylesprivate final Storablecopyprivate final ByteArrayasBytes
-
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 LonggetId()Unique ID of this object. final UnitsetId(Long id)Unique ID of this object. final StringgetName()Name of object, have to be unique final UnitsetName(String name)Name of object, have to be unique final LonggetTimeCreated()Time the data was created (ms). final UnitsetTimeCreated(Long timeCreated)Time the data was created (ms). final LonggetTimeUpdated()Time the data was updated for the last time (ms). final UnitsetTimeUpdated(Long timeUpdated)Time the data was updated for the last time (ms). final GeoDataExtragetExtraData()Extra data with parameters. final UnitsetExtraData(GeoDataExtra extraData)Extra data with parameters. final GeoDataStylegetStyleNormal()Style for normal state. final UnitsetStyleNormal(GeoDataStyle styleNormal)Style for normal state. final GeoDataStylegetStyleHighlight()Style for highlight state. final UnitsetStyleHighlight(GeoDataStyle styleHighlight)Style for highlight state. final GeoData.PrivacygetPrivacy()Define item privacy mode. final UnitsetPrivacy(GeoData.Privacy privacy)Define item privacy mode. final BooleangetProtected()Define read-write mode of item. final UnitsetProtected(Boolean protected)Define read-write mode of item. final BooleangetIsEnabled()final UnitsetIsEnabled(Boolean isEnabled)final BooleangetIsVisible()final UnitsetIsVisible(Boolean isVisible)final BooleangetIsSelected()final UnitsetIsSelected(Boolean isSelected)final ByteArraygetExtraDataRaw()final UnitsetExtraDataRaw(ByteArray extraDataRaw)final BytegetParameterSource()final UnitsetParameterSource(Byte parameterSource)final StringgetParameterStyleName()final UnitsetParameterStyleName(String parameterStyleName)final StringgetParameterDescription()final UnitsetParameterDescription(String parameterDescription)final PointRteActiongetParameterRteAction()final UnitsetParameterRteAction(PointRteAction parameterRteAction)final IntegergetParamRteIndex()final ByteArraygetStyles()final UnitsetStyles(ByteArray styles)final StorablegetCopy()final ByteArraygetAsBytes()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.Point
addAttachmentAudio, addAttachmentOther, addAttachmentPhoto, addAttachmentVideo, addParameter, addParameter, addParameter, addParameter, addParameterEmail, addParameterEmail, addParameterPhone, addParameterPhone, addParameterUrl, addParameterUrl, getParameter, getParameterRaw, getTag, getTag, getTagsKeys, hasParameter, hasParameterDescription, isParameterSource, removeParameter, removeParameterSource, removeParameterStyleName, setTag, setTag -
Methods inherited from class locus.api.objects.geoData.GeoData
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()
-
getTimeCreated
final Long getTimeCreated()
Time the data was created (ms).
-
setTimeCreated
final Unit setTimeCreated(Long timeCreated)
Time the data was created (ms).
-
getTimeUpdated
final Long getTimeUpdated()
Time the data was updated for the last time (ms).
-
setTimeUpdated
final Unit setTimeUpdated(Long timeUpdated)
Time the data was updated for the last time (ms).
-
getExtraData
final GeoDataExtra getExtraData()
Extra data with parameters.
-
setExtraData
final Unit setExtraData(GeoDataExtra extraData)
Extra data with parameters.
-
getStyleNormal
final GeoDataStyle getStyleNormal()
Style for normal state.
-
setStyleNormal
final Unit setStyleNormal(GeoDataStyle styleNormal)
Style for normal state.
-
getStyleHighlight
final GeoDataStyle getStyleHighlight()
Style for highlight state.
-
setStyleHighlight
final Unit setStyleHighlight(GeoDataStyle styleHighlight)
Style for highlight state.
-
getPrivacy
final GeoData.Privacy getPrivacy()
Define item privacy mode.
-
setPrivacy
final Unit setPrivacy(GeoData.Privacy privacy)
Define item privacy mode.
-
getProtected
final Boolean getProtected()
Define read-write mode of item. Protected item should not be exported from the Locus World or shared publicly to any place out of Locus scope.
-
setProtected
final Unit setProtected(Boolean protected)
Define read-write mode of item. Protected item should not be exported from the Locus World or shared publicly to any place out of Locus scope.
-
getIsEnabled
final Boolean getIsEnabled()
-
setIsEnabled
final Unit setIsEnabled(Boolean isEnabled)
-
getIsVisible
final Boolean getIsVisible()
-
setIsVisible
final Unit setIsVisible(Boolean isVisible)
-
getIsSelected
final Boolean getIsSelected()
-
setIsSelected
final Unit setIsSelected(Boolean isSelected)
-
getExtraDataRaw
final ByteArray getExtraDataRaw()
-
setExtraDataRaw
final Unit setExtraDataRaw(ByteArray extraDataRaw)
-
getParameterSource
final Byte getParameterSource()
-
setParameterSource
final Unit setParameterSource(Byte parameterSource)
-
getParameterStyleName
final String getParameterStyleName()
-
setParameterStyleName
final Unit setParameterStyleName(String parameterStyleName)
-
getParameterDescription
final String getParameterDescription()
-
setParameterDescription
final Unit setParameterDescription(String parameterDescription)
-
getParameterRteAction
final PointRteAction getParameterRteAction()
-
setParameterRteAction
final Unit setParameterRteAction(PointRteAction parameterRteAction)
-
getParamRteIndex
final Integer getParamRteIndex()
-
getAsBytes
final ByteArray getAsBytes()
-
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
-
-
-
-