PrivMX DOCS
API Reference/PrivMX Endpoint Swift/Events

EventQueue

Swift wrapper for privmx.NativeEventQueueWrapper, providing functionality to interact with the event queue within PrivMX platform.

Static Methods

getInstance()

Gets the EventQueue instance.

public static func getInstance(
) throws -> EventQueue

Returns

EventQueue · EventQueue object

Methods

emitBreakEvent()

Puts the break event on the events queue. You can use it to break the waitEvent loop.

public func emitBreakEvent(
) throws -> Void

waitEvent()

Starts a loop waiting for an Event.

public func waitEvent(
) throws -> privmx.endpoint.core.EventHolder

Returns

privmx.endpoint.core.EventHolder · EventHolder object

getEvent()

Gets the first event from the events queue.

public func getEvent(
) throws -> privmx.endpoint.core.EventHolder?

Returns

privmx.endpoint.core.EventHolder? · EventHolder object (optional)

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.