Class Point

  • All Implemented Interfaces:

    
    public final class Point
    extends GeoData
                        
    • Constructor Detail

      • Point

        Point(String name, Location loc)
        Create point with known name and it's location.
      • Point

        Point()
    • Method Detail

      • 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 button
        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 - 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