{"_id":"58b00beb3529383900a758a0","category":{"_id":"58aad9dd8f862f250076f9f7","version":"58aad9dd8f862f250076f9f4","project":"54aa7f773b56130b0056c86e","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-01-05T12:43:51.897Z","from_sync":false,"order":3,"slug":"ios-sdk","title":"iOS SDK"},"project":"54aa7f773b56130b0056c86e","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"},"__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-02-24T10:33:15.361Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":22,"body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \":::at:::interface LOCLocateManager : NSObject\\n\\ntypedef NS_ENUM(NSUInteger, LOCPrivacyLevel){\\n    LOCPrivacySubscribed,\\n    LOCPrivacyUnsubscribed\\n};\\n\\n/**\\n *  Starts Locate session lifecycle. If location and push were set as enabled it'll show the prompts to the user.\\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 given user (alias). If location and push were set as enabled it'll show the prompts to the user.\\n *  Session starts when the app enters foreground and ends when it goes to background.\\n */\\n-(void)startLocateSessionForAlias:(nonnull NSString*)alias;\\n\\n-(void)logout;\\n\\n/**\\n *  Sets user's privacy settings.\\n *\\n *  @param privacyLevel user's privacy level\\n */\\n-(void)setPrivacy:(LOCPrivacyLevel)privacyLevel;\\n\\n/**\\n *  If you chose to have location disabled when instantiating the Locate Manager, you can enable it later.\\n *  This enables you to postpone the location query prompt.\\n */\\n-(void)startLocation;\\n\\n/**\\n *  Decides if beacon actions should be sent with a location. The default is NO.\\n *\\n */\\n-(void)sendLocationWithBeaconEvents:(BOOL)sendLocation;\\n\\n\\n\",\n      \"language\": \"objectivec\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"locatemanager-methods","type":"basic","title":"LocateManager Methods"}

LocateManager Methods


[block:code] { "codes": [ { "code": "@interface LOCLocateManager : NSObject\n\ntypedef NS_ENUM(NSUInteger, LOCPrivacyLevel){\n LOCPrivacySubscribed,\n LOCPrivacyUnsubscribed\n};\n\n/**\n * Starts Locate session lifecycle. If location and push were set as enabled it'll show the prompts to the user.\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 given user (alias). If location and push were set as enabled it'll show the prompts to the user.\n * Session starts when the app enters foreground and ends when it goes to background.\n */\n-(void)startLocateSessionForAlias:(nonnull NSString*)alias;\n\n-(void)logout;\n\n/**\n * Sets user's privacy settings.\n *\n * @param privacyLevel user's privacy level\n */\n-(void)setPrivacy:(LOCPrivacyLevel)privacyLevel;\n\n/**\n * If you chose to have location disabled when instantiating the Locate Manager, you can enable it later.\n * This enables you to postpone the location query prompt.\n */\n-(void)startLocation;\n\n/**\n * Decides if beacon actions should be sent with a location. The default is NO.\n *\n */\n-(void)sendLocationWithBeaconEvents:(BOOL)sendLocation;\n\n\n", "language": "objectivec" } ] } [/block]