SnapscreenLocationProvider

@protocol SnapscreenLocationProvider

Protocol for providing location to SnapscreenKit. Pass an implementation of this protocol to SnapscreenKit if your application already tracks user location in order to improve result quality.

This is usually only necessary for SDK uses in apps that are supported in multiple countries.

  • Return the currently determined user location.

    @returns The user location or null if not determined

    Declaration

    Objective-C

    - (CLLocation *)currentUserLocation;

    Swift

    func currentUserLocation() -> CLLocation!
  • Called by SnapscreenKit if an updated user location is preferred.

    Declaration

    Objective-C

    - (void)updateCurrentUserLocation;

    Swift

    func updateCurrentUserLocation()