MessageHeader
is a Component that showcases the User or Group details in the toolbar. Furthermore, it also presents a typing indicator and a back navigation button for ease of use.
CometChatMessageHeader
component directly into your component file.
MessageHeader
component does not have any exposed actions.
onBack
is triggered when you press the back button in the app bar. It has a predefined behavior; when clicked, it navigates to the previous activity. However, you can override this action using the following code snippet.
Component
. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using RequestBuilders
of Chat SDK.
The MessageHeader
component does not have any exposed filters.
Component
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
The MessageHeader
component does not produce any events.
Property | Description | Code |
---|---|---|
user | Used to pass user object of which header specific details will be shown | user={chatUser} |
group | Used to pass group object of which header specific details will be shown | group={chatGroup} |
showBackButton | Used to toggle back button visibility | showBackButton={true} |
hideVoiceCallButton | Used to toggle voice call button visibility | hideVoiceCallButton={true} |
hideVideoCallButton | Used to toggle video call button visibility | hideVideoCallButton={true} |
usersStatusVisibility | Used to toggle user status visibility | usersStatusVisibility={true} |