Widget Service
This is the entry point to manage widgets. You can grab an instance of this service through an active session.
Functions
Creates and send a new widget in a room. It makes sure you have the rights to handle this.
Deactivate a widget in a room. It makes sure you have the rights to handle this.
Returns the current room widgets defined through state events. Some widgets can be deactivated, so be sure to check for isActive if needed.
Returns the live room widgets so you can listen to them. Some widgets can be deactivated, so be sure to check for isActive.
Return the computed URL of a widget.
Returns a new instance of WidgetPostAPIMediator. Be careful to call clearWebView method and setHandler to null to avoid memory leaks. This is to be used for "admin" widgets so you can interact through JS.
Returns an instance of WidgetURLFormatter.
Returns true if you can add/remove widgets. It goes through