Edit in GitHubLog an issue
Copied to your clipboard
static func clear()
Copied to your clipboard
+ (void) clear;
Copied to your clipboard
+ (void) clear;
Copied to your clipboard
static var extensionVersion: String
Copied to your clipboard
+ (nonnull NSString*) extensionVersion;
Copied to your clipboard
+ (nonnull NSString*) extensionVersion;
Copied to your clipboard
static func getCurrentPointsOfInterest(_ closure: @escaping ([PointOfInterest]) -> Void)
Copied to your clipboard
+ (void) getCurrentPointsOfInterest: ^(NSArray<AEPPlacesPoi*>* _Nonnull pois) closure;
Copied to your clipboard
+ (void) getCurrentPointsOfInterest: (nullable void (^) (NSArray<ACPPlacesPoi*>* _Nullable userWithinPoi)) callback;
Copied to your clipboard
static func getLastKnownLocation(_ closure: @escaping (CLLocation?) -> Void)
Copied to your clipboard
+ (void) getLastKnownLocation: ^(CLLocation* _Nullable lastLocation) closure;

If the SDK has no last known location, it will pass a CLLocation object with a value of 999.999 for latitude and longitude to the callback.

Copied to your clipboard
+ (void) getLastKnownLocation: (nullable void (^) (CLLocation* _Nullable lastLocation)) callback;

Rather than providing an overloaded method, a single method supports retrieval of nearby Points of Interest. The provided closure accepts two parameters, representing the resulting nearby points of interest (if any) and the response code.

Copied to your clipboard
static func getNearbyPointsOfInterest(forLocation location: CLLocation,
withLimit limit: UInt,
closure: @escaping ([PointOfInterest], PlacesQueryResponseCode) -> Void)
Copied to your clipboard
+ (void) getNearbyPointsOfInterest: (nonnull CLLocation*) currentLocation
limit: (NSUInteger) limit
callback: ^ (NSArray<AEPPlacesPoi*>* _Nonnull, AEPPlacesQueryResponseCode) closure;

Two getNearbyPointsOfInterest methods exist. The overloaded version allows the caller to provide an errorCallback parameter in the case of failure.

Copied to your clipboard
// without error handling
+ (void) getNearbyPointsOfInterest: (nonnull CLLocation*) currentLocation
limit: (NSUInteger) limit
callback: (nullable void (^) (NSArray<ACPPlacesPoi*>* _Nullable nearbyPoi)) callback;
// with error handling
+ (void) getNearbyPointsOfInterest: (nonnull CLLocation*) currentLocation
limit: (NSUInteger) limit
callback: (nullable void (^) (NSArray<ACPPlacesPoi*>* _Nullable nearbyPoi)) callback
errorCallback: (nullable void (^) (ACPPlacesRequestError result)) errorCallback;

The order of parameters has the PlacesRegionEvent first, and the CLRegion that triggered the event second. This aligns better with Swift API naming conventions.

Copied to your clipboard
static func processRegionEvent(_ regionEvent: PlacesRegionEvent,
forRegion region: CLRegion)
Copied to your clipboard
+ (void) processRegionEvent: (AEPRegionEventType) eventType
forRegion: (nonnull CLRegion*) region;

The order of parameters has the CLRegion that triggered the event first, and the ACPRegionEventType second.

Copied to your clipboard
+ (void) processRegionEvent: (nonnull CLRegion*) region
forRegionEventType: (ACPRegionEventType) eventType;

Registration occurs by passing Places to the MobileCore.registerExtensions API.

Copied to your clipboard
MobileCore.registerExtensions([Places.self])

Registration occurs by passing AEPMobilePlaces to the [AEPMobileCore registerExtensions:completion:] API.

Copied to your clipboard
[AEPMobileCore registerExtensions:@[AEPMobilePlaces.class] completion:nil];
Copied to your clipboard
+ (void) registerExtension;
Copied to your clipboard
static func setAuthorizationStatus(status: CLAuthorizationStatus)
Copied to your clipboard
+ (void) setAuthorizationStatus: (CLAuthorizationStatus) status;
Copied to your clipboard
+ (void) setAuthorizationStatus: (CLAuthorizationStatus) status;
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.