FeedNotificationChannelFragment

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 handleCustomAction(@NonNull view: View, @NonNull action: Action, @NonNull message: BaseMessage)
If an Action is registered in a specific view, it is called when a click event occurs.
Link copied to clipboard
protected open fun handleWebAction(@NonNull view: View, @NonNull action: Action, @NonNull message: BaseMessage)
If an Action is registered in a specific view, it is called when a click event occurs.
Link copied to clipboard
protected open fun onBeforeReady(@NonNull status: ReadyStatus, @NonNull module: FeedNotificationChannelModule, @NonNull viewModel: FeedNotificationChannelViewModel)
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: FeedNotificationHeaderComponent, @NonNull viewModel: FeedNotificationChannelViewModel, @Nullable channel: FeedChannel)
Called to bind events to the FeedNotificationHeaderComponent.
Link copied to clipboard
protected open fun onBindNotificationListComponent(@NonNull listComponent: FeedNotificationListComponent, @NonNull viewModel: FeedNotificationChannelViewModel, @Nullable channel: FeedChannel)
Called to bind events to the FeedNotificationListComponent.
Link copied to clipboard
protected open fun onBindStatusComponent(@NonNull statusComponent: NotificationStatusComponent, @NonNull viewModel: FeedNotificationChannelViewModel, @Nullable channel: FeedChannel)
Called to bind events to the NotificationStatusComponent.
Link copied to clipboard
protected open fun onConfigureParams(@NonNull module: FeedNotificationChannelModule, @NonNull args: Bundle)
Called to initialize the module's params or components' params.
Link copied to clipboard
protected open fun onCreateModule(@NonNull args: Bundle): FeedNotificationChannelModule
Called to do initial creation of a module.
Link copied to clipboard
Called to do initial creation of a view model.
Link copied to clipboard
open fun onDestroy()
Link copied to clipboard
protected open fun onItemClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when the item of the notification message list is clicked.
Link copied to clipboard
protected open fun onItemLongClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when the item of the notification message list is long-clicked.
Link copied to clipboard
protected open fun onReady(@NonNull status: ReadyStatus, @NonNull module: FeedNotificationChannelModule, @NonNull viewModel: FeedNotificationChannelViewModel)
Called to start the operation of the fragment after authentication and module setup.
Link copied to clipboard
open fun onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle)
Link copied to clipboard
protected open fun shouldDismissLoadingDialog()
It will be called when the loading dialog needs dismissing.
Link copied to clipboard
protected open fun shouldShowLoadingDialog(): Boolean
It will be called when the loading dialog needs displaying.
Link copied to clipboard
Request refreshing the message list.