<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mesibo User and Group Profiles on mesibo documentation</title><link>https://docs.mesibo.com/api/users-and-profiles/</link><description>Recent content in Mesibo User and Group Profiles on mesibo documentation</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.mesibo.com/api/users-and-profiles/index.xml" rel="self" type="application/rss+xml"/><item><title>Publishing a Profile and Controlling Profile Privacy</title><link>https://docs.mesibo.com/api/users-and-profiles/publishing-profile-and-controlling-privacy/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/users-and-profiles/publishing-profile-and-controlling-privacy/</guid><description>&lt;p&gt;Your app users can create and publish a profile about themself so other users can view it. Depending on the app, users can add different information to the profile like name, photos, location, relationship status, etc. In addition, group owners and admins can also create, edit and publish profiles for their groups with information about the group. Note that a user can&amp;rsquo;t modify or publish another user&amp;rsquo;s profile.&lt;/p&gt;
&lt;p&gt;In this section, we&amp;rsquo;ll explore:&lt;/p&gt;</description></item><item><title>Viewing Profile Information and Images</title><link>https://docs.mesibo.com/api/users-and-profiles/viewing-profile-information/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/users-and-profiles/viewing-profile-information/</guid><description>&lt;p&gt;As explained before, a user can publish a profile about themselves that other users can view. Groups can also publish profile information that members can view. This section explains how users can access and view those profiles.&lt;/p&gt;
&lt;h2 id="getting-the-profile-of-another-user-or-a-group"&gt;Getting the Profile of another User or a Group&lt;a class="td-heading-self-link" href="#getting-the-profile-of-another-user-or-a-group" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;You can get the profile of any user or group by calling getProfile API.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-java" data-lang="java"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;profile&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Mesibo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;getProfile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;userAddress&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or,&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-java" data-lang="java"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;profile&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Mesibo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;getProfile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;groupId&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If the profile already exists locally, the &lt;code&gt;getProfile()&lt;/code&gt; function will instantly return it. If not, it will return an empty profile and request the profile from the mesibo (or your on-premise) server.&lt;/p&gt;</description></item><item><title>Subscribing to Mesibo Profile Update</title><link>https://docs.mesibo.com/api/users-and-profiles/subscribing-to-profile-update/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/users-and-profiles/subscribing-to-profile-update/</guid><description>&lt;h3 id="subscribing-to-a-profile"&gt;Subscribing to a Profile&lt;a class="td-heading-self-link" href="#subscribing-to-a-profile" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;You can subscribe to a user&amp;rsquo;s profile so your app can be notified when that profile is changed.&lt;/p&gt;
&lt;p&gt;When you first call &lt;code&gt;getProfile()&lt;/code&gt; for a user, if their profile doesn&amp;rsquo;t exist locally, your app will automatically be subscribed to receive updates for that profile. You can also manually subscribe or unsubscribe anytime:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-java" data-lang="java"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;profile&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;subscribe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;&lt;span class="w"&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Once subscribed to a profile, your app will be notified of any updates through listeners. There are two types of listeners that you can implement:&lt;/p&gt;</description></item><item><title>Mesibo Profile Customization Listener and Functions</title><link>https://docs.mesibo.com/api/users-and-profiles/profile-customization/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/users-and-profiles/profile-customization/</guid><description>&lt;p&gt;In some situations, you may want to modify or fill in missing profile information. For instance, if a user hasn&amp;rsquo;t uploaded a profile picture, their profile image will be empty. Instead of displaying nothing, you can replace it with a custom image. Similarly, you might need to override the user&amp;rsquo;s name with a name from their phone book based on your app&amp;rsquo;s logic. In this section, we will describe mesibo customization listener and functions.&lt;/p&gt;</description></item><item><title>Contact Management and Profile Synchronization</title><link>https://docs.mesibo.com/api/users-and-profiles/contact-management-and-profile-synchronization/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/users-and-profiles/contact-management-and-profile-synchronization/</guid><description>&lt;p&gt;An app can have millions of users. However, each user of the app is only communicating with a set of users. Even within this set, only a few users with whom the user may be interested in receiving updates. Also, there are users with whom the user does not want to communicate at all.&lt;/p&gt;
&lt;p&gt;Similarly, not every user may wish to disclose their information to all others. Effectively managing these preferences and ensuring synchronization for millions of users is a complex task that mesibo makes very easy.&lt;/p&gt;</description></item><item><title>Blocking and Unblocking Users</title><link>https://docs.mesibo.com/api/users-and-profiles/blocking-users/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/users-and-profiles/blocking-users/</guid><description>&lt;p&gt;Blocking and Unblocking APIs allow a user to block and unblock communication with another user.&lt;/p&gt;
&lt;p&gt;There are multiple ways a user can block another user. Mesibo Blocking and Unblocking APIs allow you to individually control each type of blocking. Depending on your app, you can block one or multiple aspects of the communication.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Block all messages from a user including text messages, binary messages, file messages, presence, activity, etc. However, if the blocked user sends a message to the group, it will not be blocked.&lt;/li&gt;
&lt;li&gt;Block group messages from a user. Other group members will still get the message.&lt;/li&gt;
&lt;li&gt;Block voice and video calls&lt;/li&gt;
&lt;li&gt;Block video calls&lt;/li&gt;
&lt;li&gt;Block profile views. The blocked user will not be able to view the profile and online status of the user.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Mesibo also provides a combined &lt;code&gt;block()&lt;/code&gt; API that blocks and unblocks messaging, calls, profile views, and online status views between users in one API call. Alternatively, your app can block individual features like messaging, group messaging, calls, video calls, profile, and online status view as per your application requirements.&lt;/p&gt;</description></item><item><title>Mesibo Profile APIs - Listeners</title><link>https://docs.mesibo.com/api/users-and-profiles/listeners/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/users-and-profiles/listeners/</guid><description>&lt;p&gt;There are two types of listeners in the mesibo Profile API:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#userprofilelistener"&gt;UserProfileListener&lt;/a&gt; The global profile listener&lt;/li&gt;
&lt;li&gt;&lt;a href="#listener"&gt;UserProfile.Listener&lt;/a&gt; Per &lt;code&gt;UserProfile&lt;/code&gt; listener.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="userprofilelistener"&gt;UserProfileListener&lt;a class="td-heading-self-link" href="#userprofilelistener" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Your app must implement the &lt;code&gt;UserProfileListener&lt;/code&gt; to be notified of global profile events. The following global listeners are available through the &lt;code&gt;UserProfileListener&lt;/code&gt; interface:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="#mesibo_onuserprofileupdated"&gt;Mesibo_onUserProfileUpdated&lt;/a&gt;, called when a profile that you have subscribed to is updated globally. Also called when you request for a profile using &lt;code&gt;getProfile&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="#mesibo_onuserprofileaccess"&gt;Mesibo_onUserProfileAccess&lt;/a&gt;, called when your app wants to access a profile. You can make modifications to the profile object here as per your local context. For example, if you are syncing profiles of contacts on your phone, you may change the name on a user&amp;rsquo;s profile as per your local address book.&lt;/p&gt;</description></item><item><title>MesiboProfile</title><link>https://docs.mesibo.com/api/users-and-profiles/mesiboprofile/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/users-and-profiles/mesiboprofile/</guid><description>&lt;h2 id="mesiboprofilemesiboselfprofile-methods"&gt;MesiboProfile/MesiboSelfProfile methods&lt;a class="td-heading-self-link" href="#mesiboprofilemesiboselfprofile-methods" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The following methods are available in the &lt;code&gt;MesiboProfile&lt;/code&gt; class to access and modify a profile. &lt;code&gt;MesiboSelfProfile&lt;/code&gt; is a derived class of &lt;code&gt;MesiboProfile&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id="togglearchive"&gt;toggleArchive&lt;a class="td-heading-self-link" href="#togglearchive" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Enable or disable whether a profile is to be archived.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-java" data-lang="java"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;mMesiboProfile&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;toggleArchive&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="isarchieved"&gt;isArchieved&lt;a class="td-heading-self-link" href="#isarchieved" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Returns true if profile is archieved, false otherwise.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-java" data-lang="java"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;mMesiboProfile&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;isArchieved&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="togglemute"&gt;toggleMute&lt;a class="td-heading-self-link" href="#togglemute" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Enable or disable profile updates. If you mute, you will not be notified when that profile is updated.&lt;/p&gt;</description></item></channel></rss>