Project

class Project

Represents a specific Monterosa experience, acting as the main entry point for interaction.

A Project contains a collection of Event objects, project-level settings, and custom fields. It provides methods to access live and upcoming events, manage localization, and listen for project-wide updates like new events being published.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The currently active locale for the project.

Link copied to clipboard

Project embedUrl url

Link copied to clipboard

List of all available Project Extensions in M/IC

Link copied to clipboard

Project custom fields data received from M/IC

Link copied to clipboard
val id: String

Project unique identifier

Link copied to clipboard

Specifies localisation was enabled for application that is used by current project

Functions

Link copied to clipboard
fun add(listener: ProjectUpdateListener)

Adds a listener to receive updates for this project, such as new events being published.

Link copied to clipboard

Gets the list of all locales supported by this project. The default locale is always the first item in the list.

Link copied to clipboard
fun getEvent(id: String): Event?

Acquires a specific Event from the project by its unique identifier.

Link copied to clipboard

Acquires the list of all Event objects currently available in the project.

Link copied to clipboard

Removes a previously added listener.

Link copied to clipboard
fun resetLocale(context: Context)

Resets the project's locale to the default, clearing any saved user preference.

Link copied to clipboard
fun setLocale(context: Context, locale: Locale)

Sets the preferred locale for the project and persists the choice.