Class ComposerView

    • Constructor Detail

      • ComposerView

        public ComposerView​(Context context)
      • ComposerView

        public ComposerView​(Context context,
                            AttributeSet attrs,
                            int defStyleAttr)
    • Method Detail

      • onInputClicked

        public void onInputClicked​(androidx.recyclerview.widget.RecyclerView.ViewHolder viewHolder)
        Specified by:
        onInputClicked in interface InputClickedListener
      • setOnSendButtonClickListener

        public void setOnSendButtonClickListener​(@NonNull
                                                 OnSendButtonClickedListener onSendButtonClickListener)
      • setInputSelectedListener

        public void setInputSelectedListener​(@NonNull
                                             OnInputSelectedListener inputSelectedListener)
      • setFragmentManager

        public void setFragmentManager​(androidx.fragment.app.FragmentManager fragmentManager)
      • setComposerPagerAdapter

        public void setComposerPagerAdapter​(@NonNull
                                            ComposerPagerAdapter composerPagerAdapter)
      • setInputs

        public void setInputs​(List<? extends Input> inputs)
      • updateColors

        public void updateColors​(@ColorRes
                                 int backgroundColorRes,
                                 @ColorRes
                                 int borderColorRes)
      • selectInput

        public boolean selectInput​(Input input,
                                   boolean showKeyboard,
                                   boolean animateEditText)
        Parameters:
        input - input that should be selected.
        showKeyboard - true if the keyboard should be force shown.
        animateEditText - if there is an editText inform the input if it should animate that in.
        Returns:
        true if input was selected or false otherwise
      • onBackPressed

        public boolean onBackPressed()
      • onDestroy

        public void onDestroy()
      • getSelectedInput

        public Input getSelectedInput()
      • getTextInputHeight

        public int getTextInputHeight()
      • hideAllInputsExcept

        public void hideAllInputsExcept​(List<String> visibleInputIdentifiers)
      • showAllInputs

        public void showAllInputs()