getRoomWidgets

abstract fun getRoomWidgets(    roomId: String,     widgetId: QueryStateEventValue,     widgetTypes: Set<String>? = null,     excludedTypes: Set<String>? = null): List<Widget>

Returns the current room widgets defined through state events. Some widgets can be deactivated, so be sure to check for isActive if needed.

Parameters

roomId

the room where you want to fetch widgets

widgetId

if you want to fetch for some particular widget

widgetTypes

if you want to filter some widget type.

excludedTypes

if you want to exclude some widget type.