CometChatJoinProtectedGroup
component is composed of the following BaseComponents:
Components | Description |
---|---|
CometChatListBase | CometChatListBase serves as a comprehensive container component, encompassing essential elements such as a title (navigationBar), search functionality (search-bar), background, and a container to embed a list view. This design provides a cohesive and intuitive user experience, facilitating seamless navigation and interaction within the component. |
CometChatJoinProtectedGroup
, as a Composite Component, offers flexible integration options, allowing it to be launched directly via button clicks or any user-triggered action. Additionally, it seamlessly integrates into tab view controllers. With join group, users gain access to a wide range of parameters and methods for effortless customization of its user interface.
The following code snippet exemplifies how you can seamlessly integrate the JoinProtectedGroup component into your application.
CometChatJoinProtectedGroup
can be launched by adding the following code snippet into XML layout file.
CometChatJoinProtectedGroup
into your Activity and Fragment by adding the following code snippets into the respective classes.
CometChatJoinProtectedGroup
is the custom view class that you want to set as the content of your activity or the view for your fragment. This will display the Join Protected Group in your activity or fragment.
setOnJoinClick
action is activated when you click the join Group button. This returns the join groups.
You can override this action using the following code snippet.
On Error
and improve error handling.
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 Join Group
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.
Events emitted by the Join Group component is as follows.
Event | Description |
---|---|
ccGroupMemberJoined | Triggers when the user joined a protected group successfully |
CometChatGroupEvents
listenerJoinProtectedGroupStyle
to the Join Protected Group
Component to customize the styling.
Property | Description | Code |
---|---|---|
Background | Sets the background color for join protected group | setBackground(int background) |
Background (Drawable) | Sets the background drawable for join protected group | setBackground(Drawable drawableBackground) |
Corner Radius | Sets the corner radius of the Join Protected Group view. | setCornerRadius(float cornerRadius) |
Border Width | Sets the border width of the Join Protected Group view. | setBorderWidth(int borderWidth) |
Border Color | Sets the border color of the Join Protected Group view. | setBorderColor(int borderColor) |
Title Color | Sets the color of the title text. | setTitleColor(int titleColor) |
Back Icon Tint | Sets the tint color of the back icon. | setBackIconTint(int backIconTint) |
Join Group Icon Tint | Sets the tint color of the join group icon. | setJoinGroupIconTint(int joinGroupIconTint) |
Edit Text Box Background | Sets the background color of the edit text box. | setEditBoxBackgroundColor(int editBoxBackgroundColor) |
Edit Text Box Corner Radius | Sets the corner radius of the edit text box. | setEditBoxCornerRadius(int editBoxCornerRadius) |
Edit Text Box Text Color | Sets the text color of the edit text box. | setEditBoxTextColor(int editBoxTextColor) |
Edit Text Box Border Color | Sets the border color of the edit text box. | setEditBoxBorderColor(int editBoxBorderColor) |
Edit Text Box Border Width | Sets the border width of the edit text box. | setEditBoxBorderWidth(int editBoxBorderWidth) |
Edit Text Placeholder Color | Sets the color of the placeholder text in the edit text box. | setEditTextPlaceHolderColor(int editTextPlaceHolderColor) |
Description Color | Sets the color of the description text. | setDescriptionColor(int descriptionColor) |
Description Text Appearance | Sets the text appearance of the description text. | setDescriptionTextAppearance(int descriptionTextAppearance) |
Title Text Appearance | Sets the text appearance of the title text. | setTitleTextAppearance(int titleTextAppearance) |
Password Text Appearance | Sets the text appearance of the password text. | setPasswordTextAppearance(int passwordTextAppearance) |
Title Font | Sets the font of the title text. | setTitleFont(String titleFont) |
CometChatJoinProtectedGroup
class.
Property | Description | Code |
---|---|---|
title | Sets the title text. | setTitle(String title) |
description | Sets the description text. | setDescription(String labelText) |
editTextBorderWidth | Sets the border width of the edit text box. | setEditTextBorderWidth(int width) |
style | Applies styles from a JoinProtectedGroupStyle object. | setStyle(JoinProtectedGroupStyle style) |
Join Protected Group
component does not provide additional functionalities beyond this level of customization.