<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>UI Listener on mesibo documentation</title><link>https://docs.mesibo.com/ui-modules/listener/</link><description>Recent content in UI Listener on mesibo documentation</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.mesibo.com/ui-modules/listener/index.xml" rel="self" type="application/rss+xml"/><item><title>UI Listener - Screen Setup</title><link>https://docs.mesibo.com/ui-modules/listener/screens/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/ui-modules/listener/screens/</guid><description>&lt;p&gt;Each screen of the messaging UI, the chat list, a chat or a profile, can be extended by the app with
its own buttons and menu items, for example voice and video call buttons in a chat or a &lt;em&gt;Settings&lt;/em&gt;
item in the chat list. The app adds them when mesibo opens the screen, and can change them later
while the screen is open.&lt;/p&gt;
&lt;h2 id="screen-initialization"&gt;Screen Initialization&lt;a class="td-heading-self-link" href="#screen-initialization" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Whenever mesibo opens a screen, it first calls &lt;code&gt;MesiboUI_onInitScreen()&lt;/code&gt; with an object that
describes the screen, its &lt;em&gt;screen object&lt;/em&gt;. Here the app adds its own buttons and menu items, and
changes the title bar.&lt;/p&gt;</description></item><item><title>UI Listener - Action Handlers</title><link>https://docs.mesibo.com/ui-modules/listener/actions/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/ui-modules/listener/actions/</guid><description>&lt;p&gt;mesibo handles every user action in its screens: opening a chat, showing the attachments, sending a
message, and so on. An app can take over any of them, or check them first, with an action handler.
For example, the app can check every message before it is sent, open its own profile screen, or show
its own location picker.&lt;/p&gt;
&lt;p&gt;When the user does something, mesibo calls &lt;code&gt;MesiboUI_onAction()&lt;/code&gt; before doing it. The app returns:&lt;/p&gt;</description></item><item><title>UI Listener - Configuration Callback</title><link>https://docs.mesibo.com/ui-modules/listener/config-callback/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/ui-modules/listener/config-callback/</guid><description>&lt;p&gt;An app with a fixed theme, light or dark, sets the configuration with &lt;code&gt;getConfig&lt;/code&gt; and does not need
this callback (see &lt;a href="https://docs.mesibo.com/ui-modules/config/#setting-the-configuration"&gt;Setting the configuration&lt;/a&gt;). The
callback is needed in two cases only, when mesibo applies a theme on its own:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The app follows the system&amp;rsquo;s light or dark setting (&lt;code&gt;THEME_SYSTEM&lt;/code&gt;, the default), and the system
switches between light and dark.&lt;/li&gt;
&lt;li&gt;The user applies or resets a look in mesibo&amp;rsquo;s Customize screen.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The app then sets its options in this callback, and not with &lt;code&gt;getConfig&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>UI Listener - Message Rendering</title><link>https://docs.mesibo.com/ui-modules/listener/rendering/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/ui-modules/listener/rendering/</guid><description>&lt;p&gt;mesibo shows every chat of the chat list, and every message of a chat, as a row of a list. An app
can change how these rows look while mesibo keeps all their behavior: a different layout for incoming
or outgoing messages, more information on a row, its own kinds of messages, or different chat list
rows. The app can change a few views of mesibo&amp;rsquo;s rows, or show its own rows instead.&lt;/p&gt;</description></item></channel></rss>