Skip to main content

EventHandler

EventHandler</codeVoice> is a collection of static methods that provide type-checking and event extraction capabilities for events held within <codeVoice>EventHolder</codeVoice> objects. These methods verify if specific events, such as connection and disconnection events, are contained within an <codeVoice>EventHolder, and extract the events if present. It acts as a Swift wrapper for PrivMX Core Event handling mechanisms.

Constants

Static Methods

isLibConnectedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>LibConnectedEvent. This method queries the provided EventHolder to determine if it contains an event that corresponds to a LibConnectedEvent.

public static func isLibConnectedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the `EventHolder` contains a `LibConnectedEvent`; otherwise, `false`.

isLibDisconnectedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>LibDisconnectedEvent. This method queries the provided EventHolder to determine if it contains an event that corresponds to a LibDisconnectedEvent.

public static func isLibDisconnectedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the `EventHolder` contains a `LibDisconnectedEvent`; otherwise, `false`.

isLibPlatformDisconnectedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>LibPlatformDisconnectedEvent. This method queries the provided EventHolder to determine if it contains an event that corresponds to a LibPlatformDisconnectedEvent.

public static func isLibPlatformDisconnectedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the `EventHolder` contains a `LibPlatformDisconnectedEvent`; otherwise, `false`.

extractLibConnectedEvent(eventHolder:)

Extracts a LibConnectedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractLibConnectedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.core.LibConnectedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `LibConnectedEvent`.

TypeDescription
privmx.endpoint.core.LibConnectedEvent The extracted `LibConnectedEvent`.

extractLibDisconnectedEvent(eventHolder:)

Extracts a LibDisconnectedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractLibDisconnectedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.core.LibDisconnectedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `LibDisconnectedEvent`.

TypeDescription
privmx.endpoint.core.LibDisconnectedEvent The extracted `LibDisconnectedEvent`.

extractLibPlatformDisconnectedEvent(eventHolder:)

Extracts a LibPlatformDisconnectedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractLibPlatformDisconnectedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.core.LibPlatformDisconnectedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `LibPlatformDisconnectedEvent`.

TypeDescription
privmx.endpoint.core.LibPlatformDisconnectedEvent The extracted `LibPlatformDisconnectedEvent`.

isLibBreakEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>LibBreakEvent. This method queries the provided EventHolder to determine if it contains a LibBreakEvent.

public static func isLibBreakEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the `EventHolder` contains a `LibBreakEvent`; otherwise, `false`.

extractLibBreakEvent(eventHolder:)

Extracts a LibBreakEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractLibBreakEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.core.LibBreakEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `LibBreakEvent`.

TypeDescription
privmx.endpoint.core.LibBreakEvent The extracted `LibBreakEvent`.

isStoreCreatedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>StoreCreatedEvent. This method queries the provided EventHolder instance to determine if it holds an event that corresponds to a StoreCreatedEvent.

public static func isStoreCreatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the event contained within the `EventHolder` is a `StoreCreatedEvent`; otherwise, `false`.

isStoreUpdatedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>StoreUpdatedEvent. This method queries the provided EventHolder instance to determine if it holds an event that corresponds to a StoreUpdatedEvent.

public static func isStoreUpdatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the event contained within the `EventHolder` is a `StoreUpdatedEvent`; otherwise, `false`.

isStoreDeletedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>StoreDeletedEvent. This method queries the provided EventHolder instance to determine if it holds an event that corresponds to a StoreDeletedEvent.

public static func isStoreDeletedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the event contained within the `EventHolder` is a `StoreDeletedEvent`; otherwise, `false`.

isStoreStatsChangedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>StoreStatsChangedEvent. This method queries the provided EventHolder instance to determine if it holds an event that corresponds to a StoreStatsChangedEvent.

public static func isStoreStatsChangedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the event contained within the `EventHolder` is a `StoreStatsChangedEvent`; otherwise, `false`.

isStoreFileCreatedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>StoreFileCreatedEvent. This method queries the provided EventHolder instance to determine if it holds an event that corresponds to a StoreFileCreatedEvent.

public static func isStoreFileCreatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the event contained within the `EventHolder` is a `StoreFileCreatedEvent`; otherwise, `false`.

isStoreFileUpdatedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>StoreFileUpdatedEvent. This method queries the provided EventHolder instance to determine if it holds an event that corresponds to a StoreFileUpdatedEvent.

public static func isStoreFileUpdatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the event contained within the `EventHolder` is a `StoreFileUpdatedEvent`; otherwise, `false`.

isStoreFileDeletedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>StoreFileDeletedEvent. This method queries the provided EventHolder instance to determine if it holds an event that corresponds to a StoreFileDeletedEvent.

public static func isStoreFileDeletedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance to be queried.

TypeDescription
Bool `true` if the event contained within the `EventHolder` is a `StoreFileDeletedEvent`; otherwise, `false`.

extractStoreCreatedEvent(eventHolder:)

Extracts a StoreCreatedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractStoreCreatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.store.StoreCreatedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `StoreCreatedEvent`.

TypeDescription
privmx.endpoint.store.StoreCreatedEvent The extracted `StoreCreatedEvent`.

extractStoreUpdatedEvent(eventHolder:)

Extracts a StoreCreatedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractStoreUpdatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.store.StoreUpdatedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `StoreCreatedEvent`.

TypeDescription
privmx.endpoint.store.StoreUpdatedEvent The extracted `StoreCreatedEvent`.

extractStoreDeletedEvent(eventHolder:)

Extracts a StoreDeletedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractStoreDeletedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.store.StoreDeletedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `StoreDeletedEvent`.

TypeDescription
privmx.endpoint.store.StoreDeletedEvent The extracted `StoreDeletedEvent`.

extractStoreStatsChangedEvent(eventHolder:)

Extracts a StoreStatsChangedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractStoreStatsChangedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.store.StoreStatsChangedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `StoreStatsChangedEvent`.

TypeDescription
privmx.endpoint.store.StoreStatsChangedEvent The extracted `StoreStatsChangedEvent`.

extractStoreFileCreatedEvent(eventHolder:)

Extracts a StoreFileCreatedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractStoreFileCreatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.store.StoreFileCreatedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `StoreFileCreatedEvent`.

TypeDescription
privmx.endpoint.store.StoreFileCreatedEvent The extracted `StoreFileCreatedEvent`.

extractStoreFileUpdatedEvent(eventHolder:)

Extracts a StoreFileUpdatedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractStoreFileUpdatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.store.StoreFileUpdatedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `StoreFileUpdatedEvent`.

TypeDescription
privmx.endpoint.store.StoreFileUpdatedEvent The extracted `StoreFileUpdatedEvent`.

extractStoreFileDeletedEvent(eventHolder:)

Extracts a StoreFileDeletedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractStoreFileDeletedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.store.StoreFileDeletedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` containing a `StoreFileDeletedEvent`.

TypeDescription
privmx.endpoint.store.StoreFileDeletedEvent The extracted `StoreFileDeletedEvent`.

isThreadCreatedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>ThreadCreatedEvent. This method verifies whether the provided EventHolder instance contains an event that corresponds to a privmx.endpoint.thread.ThreadCreatedEvent.

public static func isThreadCreatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance containing an event to check.

TypeDescription
Bool `true` if the `EventHolder` contains a `ThreadCreatedEvent`; otherwise, `false`.

isThreadUpdatedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>ThreadUpdatedEvent. This method verifies whether the provided EventHolder instance contains an event that corresponds to a privmx.endpoint.thread.ThreadUpdatedEvent.

public static func isThreadUpdatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance containing an event to check.

TypeDescription
Bool `true` if the `EventHolder` contains a `ThreadUpdatedEvent`; otherwise, `false`.

isThreadDeletedEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>ThreadDeletedEvent. This method verifies whether the provided EventHolder instance contains an event that corresponds to a privmx.endpoint.thread.ThreadDeletedEvent.

public static func isThreadDeletedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance containing an event to check.

TypeDescription
Bool `true` if the `EventHolder` contains a `ThreadDeletedEvent`; otherwise, `false`.

isThreadStatsEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>ThreadStatsEvent. This method verifies whether the provided EventHolder instance contains an event that corresponds to a privmx.endpoint.thread.ThreadStatsEvent.

public static func isThreadStatsEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance containing an event to check.

TypeDescription
Bool `true` if the `EventHolder` contains a `ThreadStatsEvent`; otherwise, `false`.

isThreadNewMessageEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>ThreadNewMessageEvent. This method verifies whether the provided EventHolder instance contains an event that corresponds to a privmx.endpoint.thread.ThreadNewMessageEvent.

public static func isThreadNewMessageEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance containing an event to check.

TypeDescription
Bool `true` if the `EventHolder` contains a `ThreadNewMessageEvent`; otherwise, `false`.

isThreadDeletedMessageEvent(eventHolder:)

Checks if the EventHolder</codeVoice> contains a <codeVoice>ThreadDeletedMessageEvent. This method verifies whether the provided EventHolder instance contains an event that corresponds to a privmx.endpoint.thread.ThreadDeletedMessageEvent.

public static func isThreadDeletedMessageEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderThe `EventHolder` instance containing an event to check.

TypeDescription
Bool `true` if the `EventHolder` contains a `ThreadDeletedMessageEvent`; otherwise, `false`.

extractThreadCreatedEvent(eventHolder:)

Extracts a ThreadCreatedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractThreadCreatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.thread.ThreadCreatedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the `ThreadCreatedEvent`.

TypeDescription
privmx.endpoint.thread.ThreadCreatedEvent The extracted `ThreadCreatedEvent`.

extractThreadUpdatedEvent(eventHolder:)

Extracts a ThreadUpdatedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractThreadUpdatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.thread.ThreadUpdatedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the `ThreadUpdatedEvent`.

TypeDescription
privmx.endpoint.thread.ThreadUpdatedEvent The extracted `ThreadUpdatedEvent`.

extractThreadDeletedEvent(eventHolder:)

Extracts a ThreadDeletedEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractThreadDeletedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.thread.ThreadDeletedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the `ThreadDeletedEvent`.

TypeDescription
privmx.endpoint.thread.ThreadDeletedEvent The extracted `ThreadDeletedEvent`.

extractThreadStatsEvent(eventHolder:)

Extracts a ThreadStatsEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractThreadStatsEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.thread.ThreadStatsChangedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the `ThreadStatsEvent`.

TypeDescription
privmx.endpoint.thread.ThreadStatsChangedEvent The extracted `ThreadStatsEvent`.

extractThreadNewMessageEvent(eventHolder:)

Extracts a ThreadNewMessageEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractThreadNewMessageEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.thread.ThreadNewMessageEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the `ThreadNewMessageEvent`.

TypeDescription
privmx.endpoint.thread.ThreadNewMessageEvent The extracted `ThreadNewMessageEvent`.

extractThreadDeletedMessageEvent(eventHolder:)

Extracts a ThreadDeletedMessageEvent</codeVoice> from the provided <codeVoice>EventHolder.

public static func extractThreadDeletedMessageEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.thread.ThreadMessageDeletedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the `ThreadDeletedMessageEvent`.

TypeDescription
privmx.endpoint.thread.ThreadMessageDeletedEvent The extracted `ThreadDeletedMessageEvent`.

isInboxCreatedEvent(eventHolder:)

Determines if the event contained in the event holder indicates an inbox creation. This method checks if the event within the provided EventHolder instance represents an inbox creation event.

public static func isInboxCreatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the event to be checked.

TypeDescription
Bool A `Bool` indicating whether the event is an inbox creation event (`true`) or not (`false`).

extractInboxCreatedEvent(eventHolder:)

Extracts the inbox creation event from the provided event holder. This method retrieves an InboxCreatedEvent object from the event contained in the given EventHolder.

public static func extractInboxCreatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.inbox.InboxCreatedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the event to be extracted.

TypeDescription
privmx.endpoint.inbox.InboxCreatedEvent An `InboxCreatedEvent` containing the details of the created inbox event.

isInboxUpdatedEvent(eventHolder:)

Determines if the event contained in the event holder indicates an inbox update. This method checks if the event within the provided EventHolder instance represents an inbox update event.

public static func isInboxUpdatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the event to be checked.

TypeDescription
Bool A `Bool` indicating whether the event is an inbox update event (`true`) or not (`false`).

extractInboxUpdatedEvent(eventHolder:)

Extracts the inbox update event from the provided event holder. This method retrieves an InboxUpdatedEvent object from the event contained in the given EventHolder.

public static func extractInboxUpdatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.inbox.InboxUpdatedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the event to be extracted.

TypeDescription
privmx.endpoint.inbox.InboxUpdatedEvent An `InboxUpdatedEvent` containing the details of the updated inbox event.

isInboxDeletedEvent(eventHolder:)

Determines if the event contained in the event holder indicates an inbox deletion. This method checks if the event within the provided EventHolder instance represents an inbox deletion event.

public static func isInboxDeletedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the event to be checked.

TypeDescription
Bool A `Bool` indicating whether the event is an inbox deletion event (`true`) or not (`false`).

extractInboxDeletedEvent(eventHolder:)

Extracts the inbox deletion event from the provided event holder. This method retrieves an InboxDeletedEvent object from the event contained in the given EventHolder.

public static func extractInboxDeletedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.inbox.InboxDeletedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the event to be extracted.

TypeDescription
privmx.endpoint.inbox.InboxDeletedEvent An `InboxDeletedEvent` containing the details of the deleted inbox event.

isInboxEntryCreatedEvent(eventHolder:)

Determines if the event contained in the event holder indicates the creation of an inbox entry. This method checks if the event within the provided EventHolder instance represents an inbox entry creation event.

public static func isInboxEntryCreatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the event to be checked.

TypeDescription
Bool A `Bool` indicating whether the event is an inbox entry creation event (`true`) or not (`false`).

extractInboxEntryCreatedEvent(eventHolder:)

Extracts the inbox entry creation event from the provided event holder. This method retrieves an InboxEntryCreatedEvent object from the event contained in the given EventHolder.

public static func extractInboxEntryCreatedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.inbox.InboxEntryCreatedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the event to be extracted.

TypeDescription
privmx.endpoint.inbox.InboxEntryCreatedEvent An `InboxEntryCreatedEvent` containing the details of the created inbox entry event.

isInboxEntryDeletedEvent(eventHolder:)

Determines if the event contained in the event holder indicates the deletion of an inbox entry. This method checks if the event within the provided EventHolder instance represents an inbox entry deletion event.

public static func isInboxEntryDeletedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> Bool

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the event to be checked.

TypeDescription
Bool A `Bool` indicating whether the event is an inbox entry deletion event (`true`) or not (`false`).

extractInboxEntryDeletedEvent(eventHolder:)

Extracts the inbox entry deletion event from the provided event holder. This method retrieves an InboxEntryDeletedEvent object from the event contained in the given EventHolder.

public static func extractInboxEntryDeletedEvent(
eventHolder: privmx.endpoint.core.EventHolder
) throws -> privmx.endpoint.inbox.InboxEntryDeletedEvent

NameTypeDescription
eventHolderprivmx.endpoint.core.EventHolderAn `EventHolder` instance containing the event to be extracted.

TypeDescription
privmx.endpoint.inbox.InboxEntryDeletedEvent An `InboxEntryDeletedEvent` containing the details of the deleted inbox entry event.