AlertEvent
public protocol AlertEvent : Event
An event passed to the Alert
callback.
-
Get the virtual device that is the source of the event
Declaration
Swift
func getVirtualDevice() -> VirtualDevice
Return Value
The
VirtualDevice
that is the source of the event. -
Get the name-value pair from the event.
Declaration
Swift
func getNamedValue() -> NamedValue
Return Value
The
NamedValue
containing attributes related to the event. -
Get the alert’s device model format URN
Declaration
Swift
func getURN() -> String
Return Value
The format URN.
-
Get the time the event was raised by the device-client
Declaration
Swift
func getEventTime() -> Date
Return Value
The time of the event.