Class ChannelFragment

    • Constructor Detail

      • ChannelFragment

        ChannelFragment()
    • Method Detail

      • initConversation

         void initConversation(String targetId, ChannelType channelType, Bundle bundle)
      • onViewClick

         void onViewClick(int clickType, UiMessage data)
      • onViewLongClick

         boolean onViewLongClick(View view, int clickType, UiMessage data)
      • getNotificationContainer

         LinearLayout getNotificationContainer()

        Returns the top notification bar container.

        Returns:

        the notification container

      • hideNotificationView

         void hideNotificationView(View notificationView)

        Hides the notification view previously shown by showNotificationView.

        Parameters:
        notificationView - the notification view to hide
      • showNotificationView

         void showNotificationView(View notificationView)

        Displays a view in the notification area.

      • onRefresh

         void onRefresh(RefreshLayout refreshLayout)
      • onActivityResult

         void onActivityResult(int requestCode, int resultCode, Intent data)
      • onCreateView

         View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

        Find views by ID and bindlisteners.

      • onViewCreated

         void onViewCreated(View view, Bundle savedInstanceState)
      • onLoadMore

         void onLoadMore(RefreshLayout refreshLayout)
      • onWarningDialog

         void onWarningDialog(String msg)

        Warning dialog, e.g. "Failed to join chatroom". To customize: 1. Create a subclass of ChannelFragment. 2. Override onWarningDialog.

        Parameters:
        msg - the dialog message
      • addHeaderView

         void addHeaderView(View view)
        Parameters:
        view - custom list header view
      • addFooterView

         void addFooterView(View view)
        Parameters:
        view - custom list footer view
      • setEmptyView

         void setEmptyView(View view)
        Parameters:
        view - custom empty-state view for the list
      • setEmptyView

         void setEmptyView(int emptyId)
        Parameters:
        emptyId - layout resource ID for the custom empty-state view