CrossedFence

@objcMembers
public class CrossedFence : NSObject, Codable
extension CrossedFence: JsonString

A CrossedFence records details when a Fence is crossed. Useful to determine and inspect the list of crossed fences when a Travel Path condition is used.

  • Id of the crossed fence

    Declaration

    Swift

    public let fenceId: String
  • Name of the crossed fence

    Declaration

    Swift

    public let fenceName: String
  • Time crossing the fence

    Declaration

    Swift

    public let crossTime: Date
  • Location where fence was crossed

    Declaration

    Swift

    public let location: CLLocation
  • Convert to JSON string

    This function throws an error if JSON encoding process fails

    Declaration

    Swift

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