Disruptive Documentation

Structure Touch​Event

public struct TouchEvent: Codable, Equatable  

An event that is sent whenever a device is touched. This event is sent for almost all the available device types (except a few like the counting sensors).

See the Developer Website for more details.

%19 TouchEvent TouchEvent Equatable Equatable TouchEvent->Equatable Codable Codable TouchEvent->Codable PublishableEvent PublishableEvent TouchEvent->PublishableEvent

Conforms To

PublishableEvent

Used by event types (such as TouchEvent) to indicate that they can be published to the device emulator.

Codable
Equatable

Initializers

init(timestamp:​)

public init(timestamp: Date)  

Creates a new TouchEvent.

init(from:​)

public init(from decoder: Decoder) throws  

Properties

timestamp

public let timestamp: Date

The timestamp of when the touch event was received by a Cloud Connector.

event​Type

public var eventType: EventType  

Methods

encode(to:​)

public func encode(to encoder: Encoder) throws