privmx.endpoint.thread.ThreadUpdatedEvent
Holds data of event that arrives when Thread is updated.
Static Methods
typeStr()
Returns the event type as a string.
This method returns the constant string "threadUpdated"
, identifying the type of this event as threadUpdated
.
Returns
String
·
A String
representing the event type, in this case, "threadUpdated"
.
Methods
getChannel()
Returns the event channel as a string.
This implementation returns the constant string "thread"
, identifying the channel associated with ThreadUpdatedEvent
.
Returns
String
·
A String
representing the event channel, in this case, "thread"
.
handleWith(cb:)
Handles the event by calling the provided callback with an optional argument.
This implementation passes the data
property to the callback.
Params
cb
@escaping (@MainActor @Sendable (_ data: Any?) async -> Void)
A closure that accepts an optional Any?
argument, representing the data to be passed when the event is handled.
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.
PrivMX Endpoint Swift v2.3