Skip to content

CLASS

IPSAnalyticsRegionType

public class IPSAnalyticsRegionType: NSObject

An extensible, enum-like descriptor for the type of an IPSAnalyticsRegion.

Built-in values are exposed as static constants on this class, e.g. IPSAnalyticsRegionType.category and IPSAnalyticsRegionType.aisle. Two instances are considered equal when their rawValue matches, so == behaves like comparing enum cases:

if region.analyticsRegionType == .category {
    // handle category region
}
  • Since: 9.9.0

Properties

category

@objc public static let category = IPSAnalyticsRegionType(rawValue: "category")

A region that represents a product category area on the map. - Since: 9.9.0

aisle

@objc public static let aisle    = IPSAnalyticsRegionType(rawValue: "aisle")

A region that represents an aisle on the map. - Since: 9.9.0

undefined

@objc public static let undefined = IPSAnalyticsRegionType(rawValue: "undefined")

Undefined region type. - Since: 9.9.0

hash

public override var hash: Int

Methods

isEqual(_:)

public override func isEqual(_ object: Any?) -> Bool