Offline
public class Offline: NSObject
Class to manage offline hits stored
-
Send all hits stored
Declaration
Swift
@objc public func dispatch()
-
Get all offline hits stored in database
Declaration
Swift
@objc public func get() -> [Hit]
-
Get the number of offline hits stored in database
Declaration
Swift
@objc public func count() -> Int
-
Delete all offline hits stored in database
Declaration
Swift
@objc public func delete() -> Int
-
Delete offline hits older than the number of days passed in parameter
Declaration
Swift
public func delete(_ olderThan: Int) -> Int
-
Delete offline hits older than the date passed in parameter
Declaration
Swift
public func delete(_ olderThan: Date) -> Int
-
Get the first hit stored in database
Declaration
Swift
@objc public func oldest() -> Hit?
-
Get the latest hit stored in database
Declaration
Swift
@objc public func latest() -> Hit?