struct NodeNotificationextension NodeNotification : AutomationValue, Equatable, Hashable, Sendable, StructDataRepresentableRepresents a notification for a node.
Maps to TraitSubscriberNotification in interaction_api.proto.
-
Undocumented
Declaration
Swift
enum NotificationTypeextension NodeNotification.NotificationType : AutomationValue, Enum, Enum32, Equatable, Hashable, RawRepresentable, Sendable -
Undocumented
Declaration
Swift
enum SubscriptionStateChangeTypeextension NodeNotification.SubscriptionStateChangeType : AutomationValue, Enum, Enum32, Equatable, Hashable, RawRepresentable, Sendable -
Undocumented
Declaration
Swift
let type: NodeNotification.NotificationType -
Undocumented
Declaration
Swift
let handle: String -
Undocumented
Declaration
Swift
let payload: NodeNotificationPayload? -
Undocumented
Declaration
Swift
let deletedTraitIDs: [String] -
Undocumented
Declaration
Swift
let deletedObjectIDs: [String] -
Undocumented
Declaration
Swift
let omitStorage: Bool -
Undocumented
Declaration
Swift
let subscriptionStateChangeType: NodeNotification.SubscriptionStateChangeType -
Undocumented
Declaration
Swift
let backendPathDiscriminator: String? -
init(type:handle:payload:deletedTraitIDs:deletedObjectIDs:omitStorage:subscriptionStateChangeType:backendPathDiscriminator:)
Undocumented
Declaration
Swift
init(type: NodeNotification.NotificationType = .unspecified, handle: String = "", payload: NodeNotificationPayload? = nil, deletedTraitIDs: [String] = [], deletedObjectIDs: [String] = [], omitStorage: Bool = false, subscriptionStateChangeType: NodeNotification.SubscriptionStateChangeType = .unspecified, backendPathDiscriminator: String? = nil) -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws