Disruptive Documentation

Structure Cellular​Status​Event

public struct CellularStatusEvent: Codable, Equatable  

Details about the current cellular connection status of a Cloud Connector.

See the Developer Website for more details.

%229 CellularStatusEvent CellularStatusEvent PublishableEvent PublishableEvent CellularStatusEvent->PublishableEvent Codable Codable CellularStatusEvent->Codable Equatable Equatable CellularStatusEvent->Equatable

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(signal​Strength:​errors:​timestamp:​)

public init(signalStrength: Int, errors: [ErrorMessage], timestamp: Date)  

Creates a new CellularStatusEvent.

init(from:​)

public init(from decoder: Decoder) throws  

Properties

signal​Strength

public let signalStrength: Int

The current signal strength of the Cloud Connector to the cellular network as a percentage.

errors

public let errors: [ErrorMessage] 

Any errors related to connecting to the cellular network.

timestamp

public let timestamp: Date

The timestamp of when the cellular status event was generated by a Cloud Connector.

event​Type

public var eventType: EventType  

Methods

encode(to:​)

public func encode(to encoder: Encoder) throws