Structure
ObjectPresentEvent
public struct ObjectPresentEvent: Codable, Equatable
An event that is sent whenever an object is close to a proximity sensor or not.
See the Developer Website for more details.
Relationships
Nested Types
ObjectPresentEvent.State
The proximity state of a sensor.
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(state:timestamp:)
public init(state: State, timestamp: Date)
Creates a new ObjectPresentEvent
.
init(from:)
public init(from decoder: Decoder) throws
Properties
timestamp
public let timestamp: Date
The timestamp of when the object present event was received by a Cloud Connector.
eventType
public var eventType: EventType
Methods
encode(to:)
public func encode(to encoder: Encoder) throws