CardTerminalToMonitor
class CardTerminalToMonitor
Class holding information on a monitored CardTerminal
-
Reference to a CardTerminal being monitored
Declaration
Swift
private var terminal: CardTerminal?
-
Name of CardTerminal being monitored
Declaration
Swift
private var terminalName: String
-
Flag indicating if the battery threshold noticed has been given already or not
Declaration
Swift
private var noticeGiven: Bool
-
Battery threshold value to monitor for
Declaration
Swift
private var threshold: UInt8
-
Initialiser. Initialises the CardTerminal to monitor and the battery threshold.
Declaration
Swift
init(cardTerminal: CardTerminal, batteryThreshold: UInt8)
Parameters
cardTerminal
CardTerminal to monitor
batteryThreshold
Battery threshold value to monitor
-
De-initialiser. cleans up
Declaration
Swift
deinit
-
Returns the CardTerminal name
Declaration
Swift
var cardTerminalName: String { get }
-
Gets or sets the monitored battery threshold value
Declaration
Swift
var batteryThreshold: UInt8 { get set }
-
Gets or sets the flag if a battery threshold notice has been given or not
Declaration
Swift
var batteryNoticeGiven: Bool { get set }
-
Checks if the battery level of the monitored CardTeminal has reached the set battery threshold.
Declaration
Swift
func batteryThresholdReached() -> Bool
Return Value
True if threshold has been reached, else false
-
Cleans up the CardTerminal reference
Declaration
Swift
func cleanup()