In UIKit for Android, the fragment plays the most important role in building the UI of every screen because it creates the module and ViewModel. In each key function, you can customize the corresponding fragment to build a UI that fits your needs. The following list shows the various customization options that Sendbird UIKit provides. Each page shows
ChannelFragment in the code as an example but it can be applied to all fragments.
- Customize UIKitFragmentFactory
- Customize the layout of the view
- Customize style of the view
- Bind event handlers to the view
- Add new APIs to the fragment
- Update or change an item in a list
For custom settings that apply globally to the entire UIKit, the
SendbirdUIKit class provides a set of APIs as shown in the following table.
Note: We recommend you to set the following methods when
onCreate()of the Application class is called.
Sets the basic UIKit theme.
Determines whether to compress the image when sending an image file message. This method only applies to the following image types:
Sets the value of the compression rate to apply to the image. Acceptable values are
Sets the new
Sets the reply filter to quote reply mode. (Default:
Determines whether to show the default user profile dialog. (Default:
Sets the handler that loads a list of users that the current user can choose from to create a channel with. (Default:
Sets the handler that contains event callback methods to customize the parameters used in specific Chat SDK APIs.