Class NeonEnvironment


  • public class NeonEnvironment
    extends java.lang.Object
    The main entry point for integrating Neon Environment Services into your application.
    • Constructor Detail

      • NeonEnvironment

        public NeonEnvironment()
    • Method Detail

      • downloadBuildingsInArea

        public static void downloadBuildingsInArea​(LatLongRect bounds,
                                                   INeonBuildingListener callback)
        Issues a request to download buildings in the specified area. If they have previously been downloaded, it will return the cached result without hitting the network.
        Parameters:
        bounds - The area defined by four latitude-longitude pairs
        callback - Called on completion with status information (on main looper)
      • downloadBuildingsInArea

        public static void downloadBuildingsInArea​(LatLongRect bounds,
                                                   android.os.Handler h,
                                                   INeonBuildingListener callback)
        Issues a request to download buildings in the specified area. If they have previously been downloaded, it will return the cached result without hitting the network.
        Parameters:
        bounds - The area defined by four latitude-longitude pairs
        h - The handler, used for the status notification callback
        callback - Called on completion with status information
      • downloadBuildingsInArea

        public static void downloadBuildingsInArea​(LatLongRect bounds,
                                                   android.os.Handler h,
                                                   INeonBuildingListener listener,
                                                   DownloadOptions downloadOptions)
        Issues a request to download buildings in the specified area. If they have previously been downloaded and the download options are set to CACHED, it will return the cached result without hitting the network. If the options are set to FORCE_REFRESH it will re-download all buildings in the area.
        Parameters:
        bounds - The area defined by four latitude-longitude pairs
        h - The handler, used for status notifications
        listener - Called on completion with a list of NeonBuildings and status
        downloadOptions - If FORCE_REFRESH, will force the Neon Location Service to requery from the cloud. If CACHED, calls to getBuildingsInArea may return cached values
      • getBuilding

        public static NeonBuilding getBuilding​(java.util.UUID id)
        retrieves a specific building by id that has already been downloaded to the Neon Location Service.
        Parameters:
        id - is the UUID identifier for a building
        Returns:
        A NeonBuilding or null if not found
      • downloadFloorPlan

        public static void downloadFloorPlan​(android.content.Context context,
                                             NeonBuildingFloor floor,
                                             android.os.Handler h,
                                             INeonFloorPlanListener listener)
        Downloads a floor plan image that corresponds with a NeonBuildingFloor. This operation will download the floor plan if it has not already been cached in the Neon Location Service. If the image can be retrieved it will decode a bitmap and return the results via the INeonFloorPlanListener. This is potentially a slow operation and work is done on the passed in handler - don't pass a handler to the main looper if you don't want to block the main thread.
        Parameters:
        context - The context of the calling application
        floor - The NeonBuildingFloor object used to retrieve the floor plan image
        h - The handler, used for bitmap decoding and status notification. Work is performed on this handler.
        listener - Called on completion with status information and, if successful, a NeonFloorPlan
      • syncEnvironment

        public static void syncEnvironment​(LatLongRect bounds)