DeviceRegistrationCollector
open class DeviceRegistrationCollector : FieldCollector<String>, Submittable, @unchecked Sendable
Class representing a device registration collector.
Inherits from FieldCollector and is used to collect device information.
- property devices: The list of devices.
- property value: The selected device.
- method eventType: Returns the event type.
- method payload: Returns the selected device type.
- method init: Initializes a new instance of
DeviceRegistrationCollector.
-
The list of devices.
Declaration
Swift
public private(set) var devices: [Device] { get } -
The selected device.
Declaration
Swift
public var value: Device? -
Initializes a new instance of
DeviceRegistrationCollectorwith the given JSON input.Declaration
Swift
public required init(with json: [String : Any]) -
Returns the selected device type.
Declaration
Swift
override open func payload() -> String?
View on GitHub