Class RongExtension

    • Constructor Detail

      • RongExtension

        RongExtension(Context context)
        RongExtension constructor.
        Parameters:
        context - Context.
      • RongExtension

        RongExtension(Context context, AttributeSet attrs)
        RongExtension constructor.
        Parameters:
        context - Context.
        attrs - View attribute set.
    • Method Detail

      • bindToConversation

         void bindToConversation(Fragment fragment, ChannelIdentifier conversationIdentifier, boolean disableSystemEmoji)
      • onResume

         void onResume()

        Lifecycle callback when ChannelFragment onResume() is called.

      • resetToDefaultView

         void resetToDefaultView(String conversationType, InputMode mode, boolean forceShowKeyBoard)
      • updateInputMode

         void updateInputMode(InputMode inputMode, boolean forceShowKeyBoard)
      • collapseExtension

         void collapseExtension()

        Collapse the panel. Kept for backward compatibility. Prefer using the ViewModel method.

      • addPluginPager

         void addPluginPager(View v)

        Adds a custom view to the plugin area. After adding, the "+" area is entirely filled with the custom view. When the custom view is visible, tapping "+" toggles between the custom view and the default plugin panel.

        Parameters:
        v - Custom view.
      • getConversationType

         ChannelType getConversationType()

        Gets the channel type of the current conversation where the Extension resides.

        Returns:

        Channel type.

      • getTargetId

         String getTargetId()

        Gets the targetId of the current conversation.

        Returns:

        Target ID.

      • startActivityForPluginResult

         void startActivityForPluginResult(Intent intent, int requestCode, IPluginModule pluginModule)
        Parameters:
        intent - The intent to start.
        requestCode - If >= 0, this code will be returned in onActivityResult() when the activity exits.
      • onActivityPluginResult

         void onActivityPluginResult(int requestCode, int resultCode, Intent data)

        Called when an activity finishes and returns a result.