UALocationEvent

@interface UALocationEvent : UAEvent

A UALocationEvent captures all the necessary information for UAAnalytics.

  • Creates a UALocationEvent.

    Declaration

    Objective-C

    + (nonnull UALocationEvent *)
        locationEventWithInfo:(nonnull UALocationInfo *)info
                 providerType:(nullable UALocationServiceProviderType *)providerType
              desiredAccuracy:(nullable NSNumber *)desiredAccuracy
               distanceFilter:(nullable NSNumber *)distanceFilter;

    Swift

    /*not inherited*/ init(info: UALocationInfo, providerType: String?, desiredAccuracy: NSNumber?, distanceFilter: NSNumber?)

    Parameters

    info

    The location info.

    providerType

    The type of provider that produced the location.

    desiredAccuracy

    The requested accuracy.

    distanceFilter

    The requested distance filter.

    Return Value

    UALocationEvent populated with the necessary values.

  • Creates a UALocationEvent for a single location update.

    Declaration

    Objective-C

    + (nonnull UALocationEvent *)
        singleLocationEventWithInfo:(nonnull UALocationInfo *)info
                       providerType:
                           (nullable UALocationServiceProviderType *)providerType
                    desiredAccuracy:(nullable NSNumber *)desiredAccuracy
                     distanceFilter:(nullable NSNumber *)distanceFilter;

    Swift

    class func singleLocationEvent(with info: UALocationInfo, providerType: String?, desiredAccuracy: NSNumber?, distanceFilter: NSNumber?) -> UALocationEvent

    Parameters

    info

    The location info.

    providerType

    The type of provider that produced the location.

    desiredAccuracy

    The requested accuracy.

    distanceFilter

    The requested distance filter.

    Return Value

    UALocationEvent populated with the necessary values

  • Creates a UALocationEvent for a significant location change.

    Declaration

    Objective-C

    + (nonnull UALocationEvent *)
        significantChangeLocationEventWithInfo:(nonnull UALocationInfo *)info
                                  providerType:
                                      (nullable UALocationServiceProviderType *)
                                          providerType;

    Swift

    class func significantChange(with info: UALocationInfo, providerType: String?) -> UALocationEvent

    Parameters

    info

    The location info.

    providerType

    The type of provider that produced the location.

    Return Value

    UALocationEvent populated with the necessary values

  • Creates a UALocationEvent for a standard location change.

    Declaration

    Objective-C

    + (nonnull UALocationEvent *)
        standardLocationEventWithInfo:(nonnull UALocationInfo *)info
                         providerType:
                             (nullable UALocationServiceProviderType *)providerType
                      desiredAccuracy:(nullable NSNumber *)desiredAccuracy
                       distanceFilter:(nullable NSNumber *)distanceFilter;

    Swift

    class func standardLocationEvent(with info: UALocationInfo, providerType: String?, desiredAccuracy: NSNumber?, distanceFilter: NSNumber?) -> UALocationEvent

    Parameters

    info

    The location info.

    providerType

    The type of provider that produced the location.

    desiredAccuracy

    The requested accuracy.

    distanceFilter

    The requested distance filter.

    Return Value

    UALocationEvent populated with the necessary values.