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 custom view controller, 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.
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.
SetOnBack
feature. This capability allows you to customize the behavior associated with navigating back within your app. Utilize the provided code snippet to override default behaviors and tailor the user experience according to your specific requirements.
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 |
---|---|
onGroupMemberJoin | Triggers when the user joined a protected group successfully |
JoinGroupStyle
to the Join Group
Component to customize the styling.
Property | Description | Code |
---|---|---|
Background | Sets the background color for join protected group | set(background: UIColor) |
CornerRadius | Sets the corner radius for join protected group | set(cornerRadius: CometChatCornerStyle) |
BorderWidth | Sets the border width for join protected group | set(borderWidth: CGFloat) |
BorderColor | Sets the border color for join protected group | set(borderColor: UIColor) |
TitleTextColor | Sets the title color for join protected group | set(titleTextColor: UIColor) |
TitleTextFont | Sets the title font for join protected group | set(titleTextFont: UIFont) |
ErrorTextColor | Sets the error text color for join protected group | set(errorTextColor: UIColor) |
ErrorTextFont | Sets the error text font for join protected group | set(errorTextFont: UIFont) |
PasswordTextColor | Sets the text color for password in join protected group | set(passwordTextColor: UIColor) |
PasswordTextFont | Sets the text font for password in join protected group | set(passwordTextFont: UIFont) |
PasswordPlaceholderColor | Sets the placeholder color for password in join protected group | set(passwordPlaceholderColor: UIColor) |
PasswordPlaceholderFont | Sets the placeholder font for password in join protected group | set(passwordPlaceholderFont: UIFont) |
PasswordInputBackground | Sets the input view background color in join protected group | set(passwordInputBackground: UIColor) |
PasswordInputCornerRadius | Sets the input view corner radius in join protected group | set(passwordInputCornerRadius: CGFloat) |
JoinButtonTextColor | Sets the join button text color in join protected group | set(joinButtonTextColor: UIColor) |
JoinButtonTextFont | Sets the join button text font in join protected group | set(joinButtonTextFont: UIFont) |
CancelButtonTextColor | Sets the cancel button text color in join protected group | set(cancelButtonTextColor: UIColor) |
CancelButtonTextFont | Sets the cancel button text font in join protected group | set(cancelButtonTextFont: UIFont) |
CaptionTextFont | Sets the caption text font in join protected group | set(captionTextFont: UIFont) |
CaptionTextColor | Sets the caption text color in join protected group | set(captionTextColor: UIColor) |
Property | Description | Code |
---|---|---|
Title | Custom title for the component | .set(title: String, mode: UINavigationItem.LargeTitleDisplayMode) |
BackButtonTitle | Custom text for the back button | .set(backButtonTitle: String?) |
SearchPlaceholderText | Custom placeholder text for search field | .set(searchPlaceholder: String) |
ShowBackButton | Whether to hide the back button | .show(backButton: Bool) |
ErrorStateText | Custom error state text | .set(errorStateText: String) |
BackButtonIcon | Custom back button icon | .set(backButtonIcon: UIImage) |
PasswordPlaceHolderText | Custom placeholder text | .set(passwordPlaceholderText: String) |
HideContinueButton | Whether to hide the continue button | .hide(continueButton: Bool) |
Join Group
component does not provide additional functionalities beyond this level of customization.