IntegrationManagerService

interface IntegrationManagerService

This is the entry point to manage integration. You can grab an instance of this service through an active session.

Types

Link copied to clipboard
interface Listener

This listener allow you to observe change related to integrations.

Functions

Link copied to clipboard
abstract fun addListener(listener: IntegrationManagerService.Listener)

Adds a listener to observe changes.

Link copied to clipboard
abstract fun getOrderedConfigs(): List<IntegrationManagerConfig>

Return the list of current configurations, sorted by kind. First one is preferred. See IntegrationManagerConfig.Kind

Link copied to clipboard
abstract fun getPreferredConfig(): IntegrationManagerConfig

Return the preferred current configuration. See IntegrationManagerConfig.Kind

Link copied to clipboard
abstract fun isIntegrationEnabled(): Boolean

Returns true if integration is enabled, false otherwise.

Link copied to clipboard
abstract fun isNativeWidgetDomainAllowed(widgetType: String, domain: String): Boolean

Returns true if the widget domain is allowed, false otherwise.

Link copied to clipboard
abstract fun isWidgetAllowed(stateEventId: String): Boolean

Returns true if the widget is allowed, false otherwise.

Link copied to clipboard
abstract fun removeListener(listener: IntegrationManagerService.Listener)

Removes a previously added listener.

Link copied to clipboard
abstract suspend fun setIntegrationEnabled(enable: Boolean)

Offers to enable or disable the integration.

Link copied to clipboard
abstract suspend fun setNativeWidgetDomainAllowed(    widgetType: String,     domain: String,     allowed: Boolean)

Offers to allow or disallow a native widget domain.

Link copied to clipboard
abstract suspend fun setWidgetAllowed(stateEventId: String, allowed: Boolean)

Offers to allow or disallow a widget.