InteractKitAPI

InteractKit offers methods for interacting with project data, events and other related functionalities within the Monterosa / Interaction SDK.

Retrieve an instance via InteractKit and start manually interacting with elements when building your custom app.

Inheritors

Properties

Link copied to clipboard

Configuration for Interact. Holds, validates, requests configuration if needed

Link copied to clipboard

The current state of the underlying real-time connection, as a snapshot value.

Link copied to clipboard
abstract val connectionStateFlow: StateFlow<ConnectionState>

The current state of the underlying real-time connection, as a StateFlow. New collectors immediately receive the current state, then every subsequent transition.

Link copied to clipboard
abstract var identifier: String
Link copied to clipboard

The stream synchronisation delay currently in force, after clamping to the range the project permits. Starts at the project's default delay and changes only through setStreamSyncDelay.

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
abstract fun getAllEvents(): List<Event>

Retrieves events for the current Project based on the listings configuration from Monterosa / Interaction Cloud. Each event includes its associated elements, which can be used to manage and display event-specific content.

Link copied to clipboard
abstract suspend fun getProject(context: Context): Project

Retrieves a representation of Monterosa / Interaction Cloud Project. The returned Project includes listings, assets, extensions, and various configurations defined in Studio, which can be leveraged to build and customise your app.

Link copied to clipboard
open fun load()
Link copied to clipboard
abstract fun login(signature: Signature, complete: (Boolean) -> Unit)

Login against Enmasse to associate votes to signature session from Identify. This should be called after WebSocket authentication when WebSocket is ready to receive messages or requests.

Link copied to clipboard
abstract fun logout()

Logs out the current logged-in user from EnMasse.This call is expected to always succeed as the session is considered a requested state. EnMasse will consider the client disconnected and logout automatically if logout is not called as a result of a disconnection.

Link copied to clipboard
abstract fun setStreamSyncDelay(delay: Duration)

Sets the delay for stream synchronisation.