ZoneInfo

@objcMembers
public class ZoneInfo : NSObject
extension ZoneInfo: JsonString

Details of a Zone. See its usage in GeoTriggerEvent.

  • id

    Id of the zone

    Declaration

    Swift

    public let id: UUID
  • Name of the zone

    Declaration

    Swift

    public let name: String
  • Zone customData, set from Canvas

    Declaration

    Swift

    public let customData: [String : String]
  • Convert to JSON string

    This function throws an error if JSON encoding process fails

    Declaration

    Swift

    @objc(toJson:)
    public func toJson() throws -> String