CommunicationEvent

public class CommunicationEvent<T> : Codable where T : CommunicationEventData

CommunicationEvent is a generic supertype for all defined Coaty event types.

Attributes.

  • Event data of this event.

    Declaration

    Swift

    private(set) public var data: T { get }
  • Object ID of the event source.

    Declaration

    Swift

    internal(set) public var sourceId: CoatyUUID? { get }

Codable methods.

  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

Extension enable easy access to JSON representation of event data.

  • Undocumented

    Declaration

    Swift

    public var json: String { get }