Class MessageComposerView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.ViewManager,android.view.ViewParent,android.view.accessibility.AccessibilityEventSource
public final class MessageComposerView extends ConstraintLayout
UI component designed for handling message text input, attachments, actions, and sending the message.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MessageComposerView(Context context)MessageComposerView(Context context, AttributeSet attrs)MessageComposerView(Context context, AttributeSet attrs, Integer defStyleAttr)
-
Method Summary
Modifier and Type Method Description final Function0<Unit>getSendMessageButtonClickListener()Click listener for the send message button. final UnitsetSendMessageButtonClickListener(Function0<Unit> sendMessageButtonClickListener)Click listener for the send message button. final Function1<String, Unit>getTextInputChangeListener()Text change listener invoked each time after text was changed. final UnitsetTextInputChangeListener(Function1<String, Unit> textInputChangeListener)Text change listener invoked each time after text was changed. final Function1<List<Attachment>, Unit>getAttachmentSelectionListener()Selection listener invoked when attachments are selected. final UnitsetAttachmentSelectionListener(Function1<List<Attachment>, Unit> attachmentSelectionListener)Selection listener invoked when attachments are selected. final Function1<Attachment, Unit>getAttachmentRemovalListener()Click listener for the remove attachment button. final UnitsetAttachmentRemovalListener(Function1<Attachment, Unit> attachmentRemovalListener)Click listener for the remove attachment button. final Function1<User, Unit>getMentionSelectionListener()Selection listener invoked when a mention suggestion item is selected. final UnitsetMentionSelectionListener(Function1<User, Unit> mentionSelectionListener)Selection listener invoked when a mention suggestion item is selected. final Function1<Command, Unit>getCommandSelectionListener()Selection listener invoked when a command suggestion item is selected. final UnitsetCommandSelectionListener(Function1<Command, Unit> commandSelectionListener)Selection listener invoked when a command suggestion item is selected. final Function1<Boolean, Unit>getAlsoSendToChannelSelectionListener()Selection listener for the "also send to channel" checkbox. final UnitsetAlsoSendToChannelSelectionListener(Function1<Boolean, Unit> alsoSendToChannelSelectionListener)Selection listener for the "also send to channel" checkbox. final Function0<Unit>getDismissActionClickListener()Click listener for the dismiss action button. final UnitsetDismissActionClickListener(Function0<Unit> dismissActionClickListener)Click listener for the dismiss action button. final Function0<Unit>getCommandsButtonClickListener()Click listener for the pick commands button. final UnitsetCommandsButtonClickListener(Function0<Unit> commandsButtonClickListener)Click listener for the pick commands button. final Function0<Unit>getDismissSuggestionsListener()Click listener invoked when suggestion popup is dismissed. final UnitsetDismissSuggestionsListener(Function0<Unit> dismissSuggestionsListener)Click listener invoked when suggestion popup is dismissed. final Function1<AttachmentsPickerDialogStyle, AttachmentsPickerDialogFragment>getAttachmentsPickerDialogBuilder()Builder for the attachments picker dialog. final UnitsetAttachmentsPickerDialogBuilder(Function1<AttachmentsPickerDialogStyle, AttachmentsPickerDialogFragment> attachmentsPickerDialogBuilder)Builder for the attachments picker dialog. final Function0<Unit>getAttachmentsButtonClickListener()Click listener for the pick attachments button. final UnitsetAttachmentsButtonClickListener(Function0<Unit> attachmentsButtonClickListener)Click listener for the pick attachments button. final Function1<MotionEvent, Boolean>getAudioRecordButtonTouchListener()Touch listener for the audio record button. final UnitsetAudioRecordButtonTouchListener(Function1<MotionEvent, Boolean> audioRecordButtonTouchListener)Touch listener for the audio record button. final Function0<Unit>getAudioRecordButtonHoldListener()Hold listener invoked when the microphone button gets pressed down. final UnitsetAudioRecordButtonHoldListener(Function0<Unit> audioRecordButtonHoldListener)Hold listener invoked when the microphone button gets pressed down. final Function0<Unit>getAudioRecordButtonLockListener()Lock listener invoked when the audio recording gets locked. final UnitsetAudioRecordButtonLockListener(Function0<Unit> audioRecordButtonLockListener)Lock listener invoked when the audio recording gets locked. final Function0<Unit>getAudioRecordButtonCancelListener()Cancel listener invoked when the audio recording gets cancelled. final UnitsetAudioRecordButtonCancelListener(Function0<Unit> audioRecordButtonCancelListener)Cancel listener invoked when the audio recording gets cancelled. final Function0<Unit>getAudioRecordButtonReleaseListener()Release listener invoked when the microphone button gets released. final UnitsetAudioRecordButtonReleaseListener(Function0<Unit> audioRecordButtonReleaseListener)Release listener invoked when the microphone button gets released. final Function0<Unit>getAudioDeleteButtonClickListener()Click listener for the audio recording delete button. final UnitsetAudioDeleteButtonClickListener(Function0<Unit> audioDeleteButtonClickListener)Click listener for the audio recording delete button. final Function0<Unit>getAudioStopButtonClickListener()Click listener for the audio recording stop button. final UnitsetAudioStopButtonClickListener(Function0<Unit> audioStopButtonClickListener)Click listener for the audio recording stop button. final Function0<Unit>getAudioPlaybackButtonClickListener()Click listener for the audio recording playback button. final UnitsetAudioPlaybackButtonClickListener(Function0<Unit> audioPlaybackButtonClickListener)Click listener for the audio recording playback button. final Function0<Unit>getAudioCompleteButtonClickListener()Click listener for the audio recording complete button. final UnitsetAudioCompleteButtonClickListener(Function0<Unit> audioCompleteButtonClickListener)Click listener for the audio recording complete button. final Function1<Float, Unit>getAudioSliderDragStartListener()Drag start listener invoked when the audio slider starts being dragged. final UnitsetAudioSliderDragStartListener(Function1<Float, Unit> audioSliderDragStartListener)Drag start listener invoked when the audio slider starts being dragged. final Function1<Float, Unit>getAudioSliderDragStopListener()Drag stop listener invoked when the audio slider stops being dragged. final UnitsetAudioSliderDragStopListener(Function1<Float, Unit> audioSliderDragStopListener)Drag stop listener invoked when the audio slider stops being dragged. final UnitrenderState(MessageComposerState state)Invoked when the state has changed and the UI needs to be updated accordingly. final <V extends View, MessageComposerContent> UnitsetLeadingContent(V contentView, FrameLayout.LayoutParams layoutParams)Sets custom leading content view. final <V extends View, MessageComposerContent> UnitsetLeadingContent(V contentView)Sets custom leading content view. final <V extends View, MessageComposerContent> UnitsetCenterContent(V contentView, FrameLayout.LayoutParams layoutParams)Sets custom center content view. final <V extends View, MessageComposerContent> UnitsetCenterContent(V contentView)Sets custom center content view. final <V extends View, MessageComposerContent> UnitsetTrailingContent(V contentView, FrameLayout.LayoutParams layoutParams)Sets custom trailing content view. final <V extends View, MessageComposerContent> UnitsetTrailingContent(V contentView)Sets custom trailing content view. final <V extends View, MessageComposerContent> UnitsetFooterContent(V contentView, FrameLayout.LayoutParams layoutParams)Sets a custom footer content view. final <V extends View, MessageComposerContent> UnitsetFooterContent(V contentView)Sets a custom footer content view. final <V extends View, MessageComposerContent> UnitsetHeaderContent(V contentView, FrameLayout.LayoutParams layoutParams)Sets a custom header content view. final <V extends View, MessageComposerContent> UnitsetHeaderContent(V contentView)Sets a custom header content view. final <V extends View, MessageComposerContent> UnitsetCenterOverlapContent(V contentView, FrameLayout.LayoutParams layoutParams)Sets a custom overlapping content view. final <V extends View, MessageComposerContent> UnitsetCenterOverlapContent(V contentView)Sets a custom overlapping content view. final <V extends View, MessageComposerContent> UnitsetMentionSuggestionsContent(V contentView)Sets custom mention suggestions content view. final <V extends View, MessageComposerContent> UnitsetCommandSuggestionsContent(V contentView)Sets a custom command suggestions content view. -
Methods inherited from class android.view.View
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, autofill, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearViewTranslationCallback, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findOnBackInvokedDispatcher, findViewById, findViewWithTag, focusSearch, forceHasOverlappingRendering, generateDisplayHash, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAllowedHandwritingDelegatePackageName, getAllowedHandwritingDelegatorPackageName, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHandwritingBoundsOffsetBottom, getHandwritingBoundsOffsetLeft, getHandwritingBoundsOffsetRight, getHandwritingBoundsOffsetTop, getHandwritingDelegatorCallback, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getPreferKeepClearRects, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityDataSensitive, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isAutoHandwritingEnabled, isClickable, isContextClickable, isCredential, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHandwritingDelegate, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPreferKeepClear, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateInputConnection, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onRtlPropertiesChanged, onScreenStateChanged, onScrollCaptureSearch, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityAggregated, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDataSensitive, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAllowedHandwritingDelegatePackage, setAllowedHandwritingDelegatorPackage, setAlpha, setAnimation, setAnimationMatrix, setAutoHandwritingEnabled, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHandwritingBoundsOffsets, setHandwritingDelegatorCallback, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setIsCredential, setIsHandwritingDelegate, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPreferKeepClear, setPreferKeepClearRects, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw -
Methods inherited from class android.view.ViewGroup
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findOnBackInvokedDispatcherForChild, findViewsWithText, focusSearch, focusableViewAvailable, gatherTransparentRegion, getAccessibilityClassName, getChildAt, getChildCount, getChildDrawingOrder, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onDescendantInvalidated, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout -
Methods inherited from class androidx.constraintlayout.widget.ConstraintLayout
fillMetrics, forceLayout, generateLayoutParams, getDesignInformation, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOptimizationLevel, getSceneString, getViewById, getViewWidget, loadLayoutDescription, onViewAdded, onViewRemoved, requestLayout, setConstraintSet, setDesignInformation, setId, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOnConstraintsChanged, setOptimizationLevel, setState, shouldDelayChildPressedState -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MessageComposerView
MessageComposerView(Context context)
-
MessageComposerView
MessageComposerView(Context context, AttributeSet attrs)
-
MessageComposerView
MessageComposerView(Context context, AttributeSet attrs, Integer defStyleAttr)
-
-
Method Detail
-
getSendMessageButtonClickListener
final Function0<Unit> getSendMessageButtonClickListener()
Click listener for the send message button.
-
setSendMessageButtonClickListener
final Unit setSendMessageButtonClickListener(Function0<Unit> sendMessageButtonClickListener)
Click listener for the send message button.
-
getTextInputChangeListener
final Function1<String, Unit> getTextInputChangeListener()
Text change listener invoked each time after text was changed.
-
setTextInputChangeListener
final Unit setTextInputChangeListener(Function1<String, Unit> textInputChangeListener)
Text change listener invoked each time after text was changed.
-
getAttachmentSelectionListener
final Function1<List<Attachment>, Unit> getAttachmentSelectionListener()
Selection listener invoked when attachments are selected.
-
setAttachmentSelectionListener
final Unit setAttachmentSelectionListener(Function1<List<Attachment>, Unit> attachmentSelectionListener)
Selection listener invoked when attachments are selected.
-
getAttachmentRemovalListener
final Function1<Attachment, Unit> getAttachmentRemovalListener()
Click listener for the remove attachment button.
-
setAttachmentRemovalListener
final Unit setAttachmentRemovalListener(Function1<Attachment, Unit> attachmentRemovalListener)
Click listener for the remove attachment button.
-
getMentionSelectionListener
final Function1<User, Unit> getMentionSelectionListener()
Selection listener invoked when a mention suggestion item is selected.
-
setMentionSelectionListener
final Unit setMentionSelectionListener(Function1<User, Unit> mentionSelectionListener)
Selection listener invoked when a mention suggestion item is selected.
-
getCommandSelectionListener
final Function1<Command, Unit> getCommandSelectionListener()
Selection listener invoked when a command suggestion item is selected.
-
setCommandSelectionListener
final Unit setCommandSelectionListener(Function1<Command, Unit> commandSelectionListener)
Selection listener invoked when a command suggestion item is selected.
-
getAlsoSendToChannelSelectionListener
final Function1<Boolean, Unit> getAlsoSendToChannelSelectionListener()
Selection listener for the "also send to channel" checkbox.
-
setAlsoSendToChannelSelectionListener
final Unit setAlsoSendToChannelSelectionListener(Function1<Boolean, Unit> alsoSendToChannelSelectionListener)
Selection listener for the "also send to channel" checkbox.
-
getDismissActionClickListener
final Function0<Unit> getDismissActionClickListener()
Click listener for the dismiss action button.
-
setDismissActionClickListener
final Unit setDismissActionClickListener(Function0<Unit> dismissActionClickListener)
Click listener for the dismiss action button.
-
getCommandsButtonClickListener
final Function0<Unit> getCommandsButtonClickListener()
Click listener for the pick commands button.
-
setCommandsButtonClickListener
final Unit setCommandsButtonClickListener(Function0<Unit> commandsButtonClickListener)
Click listener for the pick commands button.
-
getDismissSuggestionsListener
final Function0<Unit> getDismissSuggestionsListener()
Click listener invoked when suggestion popup is dismissed.
-
setDismissSuggestionsListener
final Unit setDismissSuggestionsListener(Function0<Unit> dismissSuggestionsListener)
Click listener invoked when suggestion popup is dismissed.
-
getAttachmentsPickerDialogBuilder
final Function1<AttachmentsPickerDialogStyle, AttachmentsPickerDialogFragment> getAttachmentsPickerDialogBuilder()
Builder for the attachments picker dialog.
-
setAttachmentsPickerDialogBuilder
final Unit setAttachmentsPickerDialogBuilder(Function1<AttachmentsPickerDialogStyle, AttachmentsPickerDialogFragment> attachmentsPickerDialogBuilder)
Builder for the attachments picker dialog.
-
getAttachmentsButtonClickListener
final Function0<Unit> getAttachmentsButtonClickListener()
Click listener for the pick attachments button.
-
setAttachmentsButtonClickListener
final Unit setAttachmentsButtonClickListener(Function0<Unit> attachmentsButtonClickListener)
Click listener for the pick attachments button.
-
getAudioRecordButtonTouchListener
final Function1<MotionEvent, Boolean> getAudioRecordButtonTouchListener()
Touch listener for the audio record button.
-
setAudioRecordButtonTouchListener
final Unit setAudioRecordButtonTouchListener(Function1<MotionEvent, Boolean> audioRecordButtonTouchListener)
Touch listener for the audio record button.
-
getAudioRecordButtonHoldListener
final Function0<Unit> getAudioRecordButtonHoldListener()
Hold listener invoked when the microphone button gets pressed down.
-
setAudioRecordButtonHoldListener
final Unit setAudioRecordButtonHoldListener(Function0<Unit> audioRecordButtonHoldListener)
Hold listener invoked when the microphone button gets pressed down.
-
getAudioRecordButtonLockListener
final Function0<Unit> getAudioRecordButtonLockListener()
Lock listener invoked when the audio recording gets locked.
-
setAudioRecordButtonLockListener
final Unit setAudioRecordButtonLockListener(Function0<Unit> audioRecordButtonLockListener)
Lock listener invoked when the audio recording gets locked.
-
getAudioRecordButtonCancelListener
final Function0<Unit> getAudioRecordButtonCancelListener()
Cancel listener invoked when the audio recording gets cancelled.
-
setAudioRecordButtonCancelListener
final Unit setAudioRecordButtonCancelListener(Function0<Unit> audioRecordButtonCancelListener)
Cancel listener invoked when the audio recording gets cancelled.
-
getAudioRecordButtonReleaseListener
final Function0<Unit> getAudioRecordButtonReleaseListener()
Release listener invoked when the microphone button gets released.
-
setAudioRecordButtonReleaseListener
final Unit setAudioRecordButtonReleaseListener(Function0<Unit> audioRecordButtonReleaseListener)
Release listener invoked when the microphone button gets released.
-
getAudioDeleteButtonClickListener
final Function0<Unit> getAudioDeleteButtonClickListener()
Click listener for the audio recording delete button.
-
setAudioDeleteButtonClickListener
final Unit setAudioDeleteButtonClickListener(Function0<Unit> audioDeleteButtonClickListener)
Click listener for the audio recording delete button.
-
getAudioStopButtonClickListener
final Function0<Unit> getAudioStopButtonClickListener()
Click listener for the audio recording stop button.
-
setAudioStopButtonClickListener
final Unit setAudioStopButtonClickListener(Function0<Unit> audioStopButtonClickListener)
Click listener for the audio recording stop button.
-
getAudioPlaybackButtonClickListener
final Function0<Unit> getAudioPlaybackButtonClickListener()
Click listener for the audio recording playback button.
-
setAudioPlaybackButtonClickListener
final Unit setAudioPlaybackButtonClickListener(Function0<Unit> audioPlaybackButtonClickListener)
Click listener for the audio recording playback button.
-
getAudioCompleteButtonClickListener
final Function0<Unit> getAudioCompleteButtonClickListener()
Click listener for the audio recording complete button.
-
setAudioCompleteButtonClickListener
final Unit setAudioCompleteButtonClickListener(Function0<Unit> audioCompleteButtonClickListener)
Click listener for the audio recording complete button.
-
getAudioSliderDragStartListener
final Function1<Float, Unit> getAudioSliderDragStartListener()
Drag start listener invoked when the audio slider starts being dragged.
-
setAudioSliderDragStartListener
final Unit setAudioSliderDragStartListener(Function1<Float, Unit> audioSliderDragStartListener)
Drag start listener invoked when the audio slider starts being dragged.
-
getAudioSliderDragStopListener
final Function1<Float, Unit> getAudioSliderDragStopListener()
Drag stop listener invoked when the audio slider stops being dragged.
-
setAudioSliderDragStopListener
final Unit setAudioSliderDragStopListener(Function1<Float, Unit> audioSliderDragStopListener)
Drag stop listener invoked when the audio slider stops being dragged.
-
renderState
final Unit renderState(MessageComposerState state)
Invoked when the state has changed and the UI needs to be updated accordingly.
- Parameters:
state- The state that will be used to render the updated UI.
-
setLeadingContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setLeadingContent(V contentView, FrameLayout.LayoutParams layoutParams)
Sets custom leading content view. It must implement MessageComposerContent interface and should render integration buttons according to the received state. The current mode is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows a section with integrations.layoutParams- The layout parameters to set on the content view.
-
setLeadingContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setLeadingContent(V contentView)
Sets custom leading content view. It must implement MessageComposerContent interface and should render integration buttons according to the received state. The current mode is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows a section with integrations.
-
setCenterContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setCenterContent(V contentView, FrameLayout.LayoutParams layoutParams)
Sets custom center content view. It must implement MessageComposerContent interface and should render a message input field according to the received state. The current mode is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows a message input field.layoutParams- The layout parameters to set on the content view.
-
setCenterContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setCenterContent(V contentView)
Sets custom center content view. It must implement MessageComposerContent interface and should render a message input field according to the received state. The current mode is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows a message input field.
-
setTrailingContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setTrailingContent(V contentView, FrameLayout.LayoutParams layoutParams)
Sets custom trailing content view. It must implement MessageComposerContent interface and should render a send button according to the received state. The current mode is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows a send button.layoutParams- The layout parameters to set on the content view.
-
setTrailingContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setTrailingContent(V contentView)
Sets custom trailing content view. It must implement MessageComposerContent interface and should render a send button according to the received state. The current mode is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows a send button.
-
setFooterContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setFooterContent(V contentView, FrameLayout.LayoutParams layoutParams)
Sets a custom footer content view. It must implement MessageComposerContent interface and should render the "also send to channel" checkbox in the thread mode according to the received state. The current mode is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows the currently active mode.layoutParams- The layout parameters to set on the content view.
-
setFooterContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setFooterContent(V contentView)
Sets a custom footer content view. It must implement MessageComposerContent interface and should render the "also send to channel" checkbox in the thread mode according to the received state. The current mode is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows the currently active mode.
-
setHeaderContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setHeaderContent(V contentView, FrameLayout.LayoutParams layoutParams)
Sets a custom header content view. It must implement the MessageComposerContent interface and should render the currently active action according to the received state. The currently active action is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows the currently active action.layoutParams- The layout parameters to set on the content view.
-
setHeaderContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setHeaderContent(V contentView)
Sets a custom header content view. It must implement the MessageComposerContent interface and should render the currently active action according to the received state. The currently active action is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows the currently active action.
-
setCenterOverlapContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setCenterOverlapContent(V contentView, FrameLayout.LayoutParams layoutParams)
Sets a custom overlapping content view. It must implement the MessageComposerContent interface and should render the currently active action according to the received state. The currently active action is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows the currently active action.layoutParams- The layout parameters to set on the content view.
-
setCenterOverlapContent
@JvmOverloads() final <V extends View, MessageComposerContent> Unit setCenterOverlapContent(V contentView)
Sets a custom overlapping content view. It must implement the MessageComposerContent interface and should render the currently active action according to the received state. The currently active action is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows the currently active action.
-
setMentionSuggestionsContent
final <V extends View, MessageComposerContent> Unit setMentionSuggestionsContent(V contentView)
Sets custom mention suggestions content view. It must implement MessageComposerContent interface, and should render mention suggestions according to the received state. List of currently available mention suggestions is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows the mention suggestions list and allows the user to choose one of them.
-
setCommandSuggestionsContent
final <V extends View, MessageComposerContent> Unit setCommandSuggestionsContent(V contentView)
Sets a custom command suggestions content view. It must implement the MessageComposerContent interface, and should render command suggestions according to the received state. List of currently available command suggestions is propagated to the contentView in the MessageComposerContent.renderState function.
- Parameters:
contentView- The View which shows command suggestions list and allows to choose one of them.
-
-
-
-