LocationCondition

public class LocationCondition : ModelObject

Representation of a location restriction for a badge. The badge will only be usable at this location.

  • The badge ID which this restriction applies to.

    Declaration

    Swift

    @objc
    public dynamic var badgeId: String { get set }
  • A unique ID for the location condition. The ID contains badgeId and it is unique in an organization.

    Declaration

    Swift

    @objc
    public dynamic var uniqueId: String
  • Name of the location condition.

    Declaration

    Swift

    @objc
    public private(set) dynamic var name: String
  • CLLocation for the center of the location region.

    Declaration

    Swift

    @objc
    public dynamic var location: CLLocation { get }
  • Radius of the region from the center measured in meters. Use this for calculating distance with CLLocationDistance.

    Declaration

    Swift

    @objc
    public private(set) dynamic var radius: Float
  • Radius of the region measured by the specified unit. This is mainly used for displaying to the user.

    Declaration

    Swift

    @objc
    public private(set) dynamic var length: String
  • Unit of the radius of the region for the value specified by length.

    Declaration

    Swift

    @objc
    public private(set) dynamic var unit: String
  • Type of location condition. There are three types of restriction types:

    1. Geo-restriction
    2. Telemetry (e.g. location reporting)
    3. Both
    Declaration

    Swift

    @objc
    public private(set) dynamic var restrictionType: Int