Copied to your clipboardstatic func clear()
Copied to your clipboard+ (void) clear;
Copied to your clipboard+ (void) clear;
Copied to your clipboardstatic var extensionVersion: String
Copied to your clipboard+ (nonnull NSString*) extensionVersion;
Copied to your clipboard+ (nonnull NSString*) extensionVersion;
Copied to your clipboardstatic 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 clipboardstatic 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 clipboardstatic func getNearbyPointsOfInterest(forLocation location: CLLocation,withLimit limit: UInt,closure: @escaping ([PointOfInterest], PlacesQueryResponseCode) -> Void)
Copied to your clipboard+ (void) getNearbyPointsOfInterest: (nonnull CLLocation*) currentLocationlimit: (NSUInteger) limitcallback: ^ (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*) currentLocationlimit: (NSUInteger) limitcallback: (nullable void (^) (NSArray<ACPPlacesPoi*>* _Nullable nearbyPoi)) callback;// with error handling+ (void) getNearbyPointsOfInterest: (nonnull CLLocation*) currentLocationlimit: (NSUInteger) limitcallback: (nullable void (^) (NSArray<ACPPlacesPoi*>* _Nullable nearbyPoi)) callbackerrorCallback: (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 clipboardstatic func processRegionEvent(_ regionEvent: PlacesRegionEvent,forRegion region: CLRegion)
Copied to your clipboard+ (void) processRegionEvent: (AEPRegionEventType) eventTypeforRegion: (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*) regionforRegionEventType: (ACPRegionEventType) eventType;
Registration occurs by passing Places
to the MobileCore.registerExtensions
API.
Copied to your clipboardMobileCore.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 clipboardstatic func setAuthorizationStatus(status: CLAuthorizationStatus)
Copied to your clipboard+ (void) setAuthorizationStatus: (CLAuthorizationStatus) status;
Copied to your clipboard+ (void) setAuthorizationStatus: (CLAuthorizationStatus) status;