Disruptive Documentation

Enumeration Connection​Status​Event.​Connection

public enum Connection: Codable, Equatable  

Indicates the current connectivity of a Cloud Connector.

%133 ConnectionStatusEvent.Connection ConnectionStatusEvent.Connection Codable Codable ConnectionStatusEvent.Connection->Codable Equatable Equatable ConnectionStatusEvent.Connection->Equatable

Member Of

ConnectionStatusEvent

Indicates the current connectivity of a Cloud Connector. This is sent when there is a change in the connectivity of a Cloud Connector.

Conforms To

Codable
Equatable

Initializers

init(from:​)

public init(from decoder: Decoder) throws  

Enumeration Cases

offline

case offline

Indicates that the Cloud Connector is currently offline.

ethernet

case ethernet

Indicates that the Cloud Connector will send its data over Ethernet.

cellular

case cellular

Indicates that the Cloud Connector will send its data over Cellular.

unknown

case unknown(value: String) 

Used for backward compatibility in case a new connection type is added on the backend before being added to this client library.

Methods

display​Name()

public func displayName() -> String  

Return a String representation of the Connection that is suited for presenting to a user on screen.

encode(to:​)

public func encode(to encoder: Encoder) throws