DataEventType

public enum DataEventType : Codable, Equatable, CustomStringConvertible

A value representing the type of events to subscribe to for a node.

It is used for the DataSubscriptionDescriptor.eventType property of the DataSubscriptionDescriptor instance passed:

Cases

  • Indicates to receive events when the value of the node changes.

    The associated value indicates whether to provide the new value with the event.

    Declaration

    Swift

    case valueChange(withData: Bool)
  • Indicates to receive events related to children of the node.

    The addition associated value indicates whether to receive events when new children are added to the node.

    The change associated value indicates whether to receive events when the value of existing children changes.

    The removal associated value indicates whether to receive events when children are removed from the node.

    Declaration

    Swift

    case child(addition: Bool = false, change: Bool = false, removal: Bool = false)

Constants

  • Indicates to receive events when the value of the node changes and to provide the new value with the event.

    This is a shortcut for .valueChange(withDate: true).

    Declaration

    Swift

    public static let valueChange: DataEventType
  • Indicates to receive events when new children are added to the node.

    This is a shortcut for .child(addition: true, change: false, removal: false).

    Declaration

    Swift

    public static let childAddition: DataEventType
  • Indicates to receive events the value of existing children changes.

    This is a shortcut for .child(addition: false, change: true, removal: false).

    Declaration

    Swift

    public static let childChange: DataEventType
  • Indicates to receive events when children are removed from the node.

    This is a shortcut for .child(addition: false, change: false, removal: true).

    Declaration

    Swift

    public static let childRemoval: DataEventType
  • Indicates to receive events for any update of the children of the node.

    This is a shortcut for .child(addition: true, change: true, removal: true).

    Declaration

    Swift

    public static let childUpdate: DataEventType

Initializers

  • Declaration

    Swift

    public init(from decoder: Decoder) throws

Encodable Protocol

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

CustomStringConvertible Protocol

  • Declaration

    Swift

    public var description: String { get }