Structure
CellularStatusEvent
public struct CellularStatusEvent: Codable, Equatable
Details about the current cellular connection status of a Cloud Connector.
See the Developer Website for more details.
Relationships
Nested Types
CellularStatusEvent.ErrorMessage
Indicates an error related to connecting to the cellular network.
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(signalStrength:errors:timestamp:)
public init(signalStrength: Int, errors: [ErrorMessage], timestamp: Date)
Creates a new CellularStatusEvent
.
init(from:)
public init(from decoder: Decoder) throws
Properties
signalStrength
public let signalStrength: Int
The current signal strength of the Cloud Connector to the cellular network as a percentage.
timestamp
public let timestamp: Date
The timestamp of when the cellular status event was generated by a Cloud Connector.
eventType
public var eventType: EventType
Methods
encode(to:)
public func encode(to encoder: Encoder) throws