InviteUserFragment

open class InviteUserFragment : BaseModuleFragment<MT, VM>

Fragment displaying the user list to invite to the channel.

Types

Link copied to clipboard
open class Builder

Functions

Link copied to clipboard
protected open fun getChannelUrl(): String
Returns the URL of the channel with the required data to use this fragment.
Link copied to clipboard
protected open fun getDisabledUserIds(@NonNull channel: GroupChannel): List<String>
Returns the lists of user ids that you want to disable.
Link copied to clipboard
protected open fun inviteUser(@NonNull userIds: List<String>)
Invites users.
Link copied to clipboard
protected open fun onBeforeInviteUsers(@NonNull userIds: List<String>)
It will be called before inviting users.
Link copied to clipboard
protected open fun onBeforeReady(    @NonNull status: ReadyStatus,     @NonNull module: InviteUserModule,     @NonNull viewModel: InviteUserViewModel)
After authenticate ()} is finished, onReady will be called with the result of authentication and all preparations will be ready to use.
Link copied to clipboard
protected open fun onBindHeaderComponent(    @NonNull headerComponent: SelectUserHeaderComponent,     @NonNull viewModel: InviteUserViewModel,     @Nullable channel: GroupChannel)
Called to bind events to the SelectUserHeaderComponent.
Link copied to clipboard
protected open fun onBindInviteUserListComponent(    @NonNull listComponent: InviteUserListComponent,     @NonNull viewModel: InviteUserViewModel,     @Nullable channel: GroupChannel)
Called to bind events to the InviteUserListComponent.
Link copied to clipboard
protected open fun onBindStatusComponent(    @NonNull statusComponent: StatusComponent,     @NonNull viewModel: InviteUserViewModel,     @Nullable channel: GroupChannel)
Called to bind events to the StatusComponent.
Link copied to clipboard
protected open fun onConfigureParams(@NonNull module: InviteUserModule, @NonNull args: Bundle)
Called to initialize the module's params or components' params.
Link copied to clipboard
protected open fun onCreateModule(@NonNull args: Bundle): InviteUserModule
Called to do initial creation of a module.
Link copied to clipboard
protected open fun onCreateViewModel(): InviteUserViewModel
Called to do initial creation of a view model.
Link copied to clipboard
protected open fun onNewUserInvited(@NonNull channel: GroupChannel)
It will be called when the new users have been invited.
Link copied to clipboard
protected open fun onReady(    @NonNull status: ReadyStatus,     @NonNull module: InviteUserModule,     @NonNull viewModel: InviteUserViewModel)
Called to start the operation of the fragment after authentication and module setup.
Link copied to clipboard
protected open fun onUserSelectionCompleted(@NonNull selectedUsers: List<String>)
Called when the user selection completed.
Link copied to clipboard
open fun onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle)