privmx.endpoint.core.LibPlatformDisconnectedEvent
Emitted when connection to the PrivMX Bridge Server has been lost
Static Methods
typeStr()
Returns the event type as a string.
This method returns the constant string "libPlatformDisconnected", identifying the type of this event as libPlatformDisconnected.
Returns
String ·
A String representing the event type, in this case, "libPlatformDisconnected".
Methods
getChannel()
Returns the event channel as a string.
This implementation returns the constant string "platform", identifying the channel associated with LibPlatformDisconnectedEvent.
Returns
String ·
A String representing the event channel, in this case, "platform".
handleWith(cb:)
Handles the event by calling the provided callback with an optional argument.
This implementation always passes nil 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.
getSubscriptionList()
Retrieves the list of Subscribtion Ids of the Event
Returns
[String] ·
We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.