{"_id":"58b00e09d583072f009da223","category":{"_id":"58aad9dd8f862f250076f9f8","project":"54aa7f773b56130b0056c86e","version":"58aad9dd8f862f250076f9f4","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-01-05T12:44:00.338Z","from_sync":false,"order":4,"slug":"android-sdk","title":"Android SDK"},"__v":0,"project":"54aa7f773b56130b0056c86e","parentDoc":null,"user":"54aa7f3f9bb00c0b00cb899b","version":{"_id":"58aad9dd8f862f250076f9f4","project":"54aa7f773b56130b0056c86e","__v":2,"createdAt":"2017-02-20T11:58:21.765Z","releaseDate":"2017-02-20T11:58:21.765Z","categories":["58aad9dd8f862f250076f9f5","58aad9dd8f862f250076f9f6","58aad9dd8f862f250076f9f7","58aad9dd8f862f250076f9f8","58aad9dd8f862f250076f9f9","58aad9dd8f862f250076f9fa","58aad9dd8f862f250076f9fb","58ac26b3d460ce2500185d26"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"Locate","version_clean":"6.0.0","version":"6.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-02-24T10:42:17.831Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":999,"body":"All the methods of the LocateManager can be found below. You can find all these methods in Android Studio - right click on ILocateManager -> Go To -> Declaration.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"public interface ILocateManager {\\n\\n    /**\\n     * Starts Locate session lifecycle.\\n     * Session starts when the app enters foreground and ends when it goes to background.\\n     */\\n    void startLocateSession();\\n\\n    /**\\n     * Starts Locate session lifecycle, for the given user.\\n     * Session starts when the app enters foreground and ends when it goes to background.\\n     *\\n     * :::at:::param alias\\n     */\\n    void startLocateSessionForAlias(String alias);\\n\\n    /**\\n     * Starts Locate session lifecycle, with beacon scanning disabled.\\n     * Session starts when the app enters foreground and ends when it goes to background.\\n     */\\n    void startLocateSessionWithBeaconsDisabled();\\n\\n    /**\\n     * Enables or Disables the GPS Manager.\\n     * Disabling the GPS Manager will stop the Geo Service and disable geofencing.\\n     * By default enabled.\\n     */\\n    void setGpsManagerEnabled(boolean enabled);\\n\\n    /**\\n     * Logs out the currently logged in user.\\n     * To login an user use startLocateSessionForAlias(String alias).\\n     */\\n    void logoutCurrentAlias(ILocateLogoutCurrentUserListener listener);\\n\\n     * Sets the Authorization Data for the app. Authorization Data is later used in API Requests.\\n     *\\n     * @param authorizationData\\n     */\\n    void setAuthorizationData(AuthorizationData authorizationData);\\n\\n    /**\\n     * Enables or Disables sending the user location when a beacon event happens.\\n     * By default this it disabled\\n     *\\n     * @param enabled\\n     */\\n    void sendLocationWithBeaconEvents(boolean enabled);\\n\\n    /**\\n     * Updates user's alias. Gets updated when entering background.\\n     *\\n     * @param customerAlias user's alias\\n     */\\n    void setCustomerAlias(String customerAlias);\\n\\n    /**\\n     * Updates user's privacy. Gets updated in realtime.\\n     * Values:\\n     * Privacy.UNSUBSCRIBE\\n     * Privacy.SUBSCRIBE\\n     *\\n     * @param privacy user's privacy - can't be null\\n     */\\n    void setPrivacy(int privacy);\\n\\n    /**\\n     * Set the GPSManager to use PRIORITY_HIGH_ACCURACY to update location, uses more power, gives more accurate locations, best accuracy.\\n     */\\n    void setHighPowerGPS();\\n\\n    /**\\n     * Set the GPSManager to use PRIORITY_BALANCED_POWER_ACCURACY to update location, accuracy around 100m.\\n     */\\n    void setMediumPowerGPS();\\n\\n    /**\\n     * Set the GPSManager to use PRIORITY_LOW_POWER to update location, accuracy around about 10km accuracy.\\n     */\\n    void setLowPowerGPS();\\n\\n    /**\\n     * Set the GPSManager to use PRIORITY_NO_POWER to update location, this causes Pulsate to not request any location updates, but it can will use location data from other apps\\n     */\\n    void setNoPowerGPS();\\n\\n    /**\\n     * Returns a list of currently tracked geofences\\n     */\\n    List<PulGeoFenceEntity> getGeofenceEntities();\\n\\n    /**\\n     * Returns the last known location of the user\\n     */\\n    Location getLastKnownLocation();\\n\\n    /**\\n     * Sets a listener that receives enter/exit/dwell geofence callbacks from Pulsate.\\n     *\\n     * @param listener listener that will receive callbacks from Locate\\n     */\\n    void setGeofenceListener(ILocateGeofenceListener listener);\\n\\n    /**\\n     * Sets a listener that receives beacon monitor callbacks from Locate.\\n     *\\n     * @param listener listener that will receive callbacks from Locate\\n     */\\n    void setBeaconMonitorNotifier(ILocateBeaconMonitorNotifierListener listener);\\n\\n    /**\\n     * Sets a listener that receives beacon range callbacks from Locate.\\n     *\\n     * @param listener listener that will receive callbacks from Locate\\n     */\\n    void setBeaconRangeNotifier(ILocateBeaconRangeNotifierListener listener);\\n}\",\n      \"language\": \"java\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"locatemanager-methods-1","type":"basic","title":"LocateManager Methods"}

LocateManager Methods


All the methods of the LocateManager can be found below. You can find all these methods in Android Studio - right click on ILocateManager -> Go To -> Declaration. [block:code] { "codes": [ { "code": "public interface ILocateManager {\n\n /**\n * Starts Locate session lifecycle.\n * Session starts when the app enters foreground and ends when it goes to background.\n */\n void startLocateSession();\n\n /**\n * Starts Locate session lifecycle, for the given user.\n * Session starts when the app enters foreground and ends when it goes to background.\n *\n * @param alias\n */\n void startLocateSessionForAlias(String alias);\n\n /**\n * Starts Locate session lifecycle, with beacon scanning disabled.\n * Session starts when the app enters foreground and ends when it goes to background.\n */\n void startLocateSessionWithBeaconsDisabled();\n\n /**\n * Enables or Disables the GPS Manager.\n * Disabling the GPS Manager will stop the Geo Service and disable geofencing.\n * By default enabled.\n */\n void setGpsManagerEnabled(boolean enabled);\n\n /**\n * Logs out the currently logged in user.\n * To login an user use startLocateSessionForAlias(String alias).\n */\n void logoutCurrentAlias(ILocateLogoutCurrentUserListener listener);\n\n * Sets the Authorization Data for the app. Authorization Data is later used in API Requests.\n *\n * @param authorizationData\n */\n void setAuthorizationData(AuthorizationData authorizationData);\n\n /**\n * Enables or Disables sending the user location when a beacon event happens.\n * By default this it disabled\n *\n * @param enabled\n */\n void sendLocationWithBeaconEvents(boolean enabled);\n\n /**\n * Updates user's alias. Gets updated when entering background.\n *\n * @param customerAlias user's alias\n */\n void setCustomerAlias(String customerAlias);\n\n /**\n * Updates user's privacy. Gets updated in realtime.\n * Values:\n * Privacy.UNSUBSCRIBE\n * Privacy.SUBSCRIBE\n *\n * @param privacy user's privacy - can't be null\n */\n void setPrivacy(int privacy);\n\n /**\n * Set the GPSManager to use PRIORITY_HIGH_ACCURACY to update location, uses more power, gives more accurate locations, best accuracy.\n */\n void setHighPowerGPS();\n\n /**\n * Set the GPSManager to use PRIORITY_BALANCED_POWER_ACCURACY to update location, accuracy around 100m.\n */\n void setMediumPowerGPS();\n\n /**\n * Set the GPSManager to use PRIORITY_LOW_POWER to update location, accuracy around about 10km accuracy.\n */\n void setLowPowerGPS();\n\n /**\n * Set the GPSManager to use PRIORITY_NO_POWER to update location, this causes Pulsate to not request any location updates, but it can will use location data from other apps\n */\n void setNoPowerGPS();\n\n /**\n * Returns a list of currently tracked geofences\n */\n List<PulGeoFenceEntity> getGeofenceEntities();\n\n /**\n * Returns the last known location of the user\n */\n Location getLastKnownLocation();\n\n /**\n * Sets a listener that receives enter/exit/dwell geofence callbacks from Pulsate.\n *\n * @param listener listener that will receive callbacks from Locate\n */\n void setGeofenceListener(ILocateGeofenceListener listener);\n\n /**\n * Sets a listener that receives beacon monitor callbacks from Locate.\n *\n * @param listener listener that will receive callbacks from Locate\n */\n void setBeaconMonitorNotifier(ILocateBeaconMonitorNotifierListener listener);\n\n /**\n * Sets a listener that receives beacon range callbacks from Locate.\n *\n * @param listener listener that will receive callbacks from Locate\n */\n void setBeaconRangeNotifier(ILocateBeaconRangeNotifierListener listener);\n}", "language": "java" } ] } [/block]