VenueDiary
public class VenueDiary : NSObject, SensorDelegate
Undocumented
-
Undocumented
Declaration
Swift
public func add(_ delegate: VenueDiaryDelegate)
-
Undocumented
Declaration
Swift
public override init()
-
Set the file to save the data to
Declaration
Swift
public func setRecordingFile(_ file: TextFile)
-
Find a contact event and add to it, or create a new one
Declaration
Swift
public func findOrCreateEvent(country: UInt16,state:UInt16,venue:UInt32, name: String? = nil, extended: ExtendedData? = nil, seen at: Date, with payload: PayloadData?) -> VenueDiaryEvent
-
MARK: Public informational methods
Declaration
Swift
public func eventListCount() -> Int
-
Undocumented
Declaration
Swift
public func uniqueVenueCount() -> Int
-
Return all recordable events
Declaration
Swift
public func listRecordableEvents() -> [VenueDiaryEvent]
-
Return latest diary event, optionally may return latest that isn’t yet recordable (so you can monitor the feature in a UI)
Declaration
Swift
public func getLatestEvent(_ recordableOnly: Bool = false) -> VenueDiaryEvent?
-
Utility function, mainly for testing. Could also be used for external event definitions (E.g. QR code scan)
Declaration
Swift
public func addEncounter(_ encounter: VenueEncounter, with payload: PayloadData?, at: Date = Date()) -> VenueDiaryEvent?
-
Declaration
Swift
public func sensor(_ sensor: SensorType, didMeasure: Proximity, fromTarget: TargetIdentifier, withPayload: PayloadData)