-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.ViewManager,android.view.ViewParent,android.view.accessibility.AccessibilityEventSource,com.getstream.sdk.chat.view.IMessageListView
public final class MessageListView extends ConstraintLayout implements IMessageListView
MessageListView renders a list of messages and extends the RecyclerView The most common customizations are
Disabling Reactions
Disabling Threads
Customizing the click and longCLick (via the adapter)
The list_item_message template to use (perhaps, multiple ones...?)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceMessageListView.HeaderAvatarGroupClickListenerpublic interfaceMessageListView.HeaderOptionsClickListenerpublic interfaceMessageListView.MessageClickListenerpublic interfaceMessageListView.MessageRetryListenerpublic interfaceMessageListView.MessageLongClickListenerpublic interfaceMessageListView.MessageLongClickListenerViewpublic interfaceMessageListView.AttachmentClickListenerpublic interfaceMessageListView.GiphySendListenerpublic interfaceMessageListView.UserClickListenerpublic interfaceMessageListView.ReadStateClickListenerpublic interfaceMessageListView.ReactionViewClickListenerpublic interfaceMessageListView.BubbleHelperpublic enumMessageListView.NewMessagesBehaviourpublic interfaceMessageListView.ScrollButtonBehaviour
-
Field Summary
Fields Modifier and Type Field Description private BooleanunseenButtonEnabledprivate final SparseArray<View>mChildrenByIdsprivate final ConstraintWidgetContainermLayoutWidgetprivate final BooleanmDirtyHierarchyprivate final ConstraintLayoutStatesmConstraintLayoutSpecprivate final IntegermLastMeasureWidthSizeprivate final IntegermLastMeasureHeightSizeprivate final IntegermLastMeasureWidthModeprivate final IntegermLastMeasureHeightModeprivate final ConstraintLayout.MeasurermMeasurer
-
Constructor Summary
Constructors Constructor Description MessageListView(Context context)MessageListView(Context context, AttributeSet attrs)MessageListView(Context context, AttributeSet attrs, Integer defStyle)
-
Method Summary
Modifier and Type Method Description Unitinit(Channel channel, User currentUser)UnitsetLoadingMore(Boolean loadingMore)final UnitsetLoadingView(View view, FrameLayout.LayoutParams layoutParams)UnitshowLoadingView()UnithideLoadingView()final UnitsetEmptyStateView(View view, FrameLayout.LayoutParams layoutParams)UnitshowEmptyStateView()UnithideEmptyStateView()final UnitsetScrollButtonBehaviour(MessageListView.ScrollButtonBehaviour scrollButtonBehaviour)final UnitsetNewMessagesBehaviour(MessageListView.NewMessagesBehaviour newMessagesBehaviour)final UnitsetScrollButtonBackgroundResource(@DrawableRes() Integer backgroundRes)final UnitsetScrollButtonBackground(Drawable drawable)final UnitsetScrollButtonIconResource(@DrawableRes() Integer backgroundRes)final UnitsetScrollButtonIcon(Drawable drawable)final UnitsetAttachmentViewHolderFactory(AttachmentViewHolderFactory attachmentViewHolderFactory)final UnitsetMessageViewHolderFactory(MessageViewHolderFactory messageViewHolderFactory)final UnitsetViewHolderFactory(MessageViewHolderFactory messageViewHolderFactory)Use the more explicit setMessageViewHolderFactory method instead. final UnitsetBubbleHelper(MessageListView.BubbleHelper bubbleHelper)final UnitsetMessageDateFormatter(DateFormatter messageDateFormatter)UnitdisplayNewMessage(MessageListItemWrapper listItem)final UnitscrollToBottom()final UnitsetMessageClickListener(MessageListView.MessageClickListener messageClickListener)Sets the message click listener to be used by MessageListView. final UnitsetMessageLongClickListener(MessageListView.MessageLongClickListener messageLongClickListener)Sets the message long click listener to be used by MessageListView. final UnitsetMessageRetryListener(MessageListView.MessageRetryListener messageRetryListener)Sets the message retry listener to be used by MessageListView. final UnitsetAttachmentClickListener(MessageListView.AttachmentClickListener attachmentClickListener)Sets the attachment click listener to be used by MessageListView. final UnitsetReactionViewClickListener(MessageListView.ReactionViewClickListener reactionViewClickListener)Sets the reaction view click listener to be used by MessageListView. final UnitsetUserClickListener(MessageListView.UserClickListener userClickListener)Sets the user click listener to be used by MessageListView. final UnitsetReadStateClickListener(MessageListView.ReadStateClickListener readStateClickListener)Sets the read state click listener to be used by MessageListView. UnitsetEndRegionReachedHandler(Function0<Unit> endRegionReachedHandler)UnitsetLastMessageReadHandler(Function0<Unit> lastMessageReadHandler)UnitsetOnMessageEditHandler(Function1<Message, Unit> onMessageEditHandler)UnitsetOnMessageDeleteHandler(Function1<Message, Unit> onMessageDeleteHandler)UnitsetOnStartThreadHandler(Function1<Message, Unit> onStartThreadHandler)UnitsetOnMessageFlagHandler(Function1<Message, Unit> onMessageFlagHandler)UnitsetOnSendGiphyHandler(Function2<Message, GiphyAction, Unit> onSendGiphyHandler)UnitsetOnMessageRetryHandler(Function1<Message, Unit> onMessageRetryHandler)final UnitsetOnStartThreadListener(Function1<Message, Unit> onStartThreadListener)final BooleangetUnseenButtonEnabled()final UnitsetUnseenButtonEnabled(Boolean unseenButtonEnabled)-
Methods inherited from class android.graphics.drawable.Drawable.Callback
equals, hashCode -
Methods inherited from class android.view.ViewGroup
addExtraDataToAccessibilityNodeInfo, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, 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, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, 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, requireViewById, resetPivot, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAnimationMatrix, 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, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setImportantForAccessibility, setImportantForAutofill, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw -
Methods inherited from class androidx.constraintlayout.widget.ConstraintLayout
addChildrenForAccessibility, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawChild, drawableStateChanged, endViewTransition, findFocus, findViewsWithText, focusSearch, focusableViewAvailable, gatherTransparentRegion, getAccessibilityClassName, getChildAt, getChildCount, getChildDrawingOrder, getChildDrawingOrder, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildWithMargins, measureChildren, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onDescendantInvalidated, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout -
Methods inherited from class com.getstream.sdk.chat.view.MessageListView
addView, applyConstraintsFromLayoutParams, checkLayoutParams, dispatchDraw, fillMetrics, forceLayout, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getDesignInformation, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOptimizationLevel, getViewById, getViewWidget, isRtl, loadLayoutDescription, onLayout, onMeasure, onViewAdded, onViewRemoved, parseLayoutDescription, removeView, requestLayout, resolveMeasuredDimension, resolveSystem, setConstraintSet, setDesignInformation, setId, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOnConstraintsChanged, setOptimizationLevel, setSelfDimensionBehaviour, setState, shouldDelayChildPressedState -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MessageListView
MessageListView(Context context)
-
MessageListView
MessageListView(Context context, AttributeSet attrs)
-
MessageListView
MessageListView(Context context, AttributeSet attrs, Integer defStyle)
-
-
Method Detail
-
setLoadingMore
Unit setLoadingMore(Boolean loadingMore)
-
setLoadingView
final Unit setLoadingView(View view, FrameLayout.LayoutParams layoutParams)
- Parameters:
view- will be added to the view hierarchy of ChannelsView and managed by it.layoutParams- defines how the view will be situated inside its container ViewGroup.
-
showLoadingView
Unit showLoadingView()
-
hideLoadingView
Unit hideLoadingView()
-
setEmptyStateView
final Unit setEmptyStateView(View view, FrameLayout.LayoutParams layoutParams)
- Parameters:
view- will be added to the view hierarchy of ChannelsView and managed by it.layoutParams- defines how the view will be situated inside its container ViewGroup.
-
showEmptyStateView
Unit showEmptyStateView()
-
hideEmptyStateView
Unit hideEmptyStateView()
-
setScrollButtonBehaviour
final Unit setScrollButtonBehaviour(MessageListView.ScrollButtonBehaviour scrollButtonBehaviour)
-
setNewMessagesBehaviour
final Unit setNewMessagesBehaviour(MessageListView.NewMessagesBehaviour newMessagesBehaviour)
-
setScrollButtonBackgroundResource
final Unit setScrollButtonBackgroundResource(@DrawableRes() Integer backgroundRes)
-
setScrollButtonBackground
final Unit setScrollButtonBackground(Drawable drawable)
-
setScrollButtonIconResource
final Unit setScrollButtonIconResource(@DrawableRes() Integer backgroundRes)
-
setScrollButtonIcon
final Unit setScrollButtonIcon(Drawable drawable)
-
setAttachmentViewHolderFactory
final Unit setAttachmentViewHolderFactory(AttachmentViewHolderFactory attachmentViewHolderFactory)
-
setMessageViewHolderFactory
final Unit setMessageViewHolderFactory(MessageViewHolderFactory messageViewHolderFactory)
-
setViewHolderFactory
@Deprecated(message = "Use the more explicit setMessageViewHolderFactory method instead.", level = DeprecationLevel.WARNING, replaceWith = @ReplaceWith(imports = {}, expression = "setMessageViewHolderFactory(messageViewHolderFactory)")) final Unit setViewHolderFactory(MessageViewHolderFactory messageViewHolderFactory)
Use the more explicit setMessageViewHolderFactory method instead.
-
setBubbleHelper
final Unit setBubbleHelper(MessageListView.BubbleHelper bubbleHelper)
-
setMessageDateFormatter
final Unit setMessageDateFormatter(DateFormatter messageDateFormatter)
-
displayNewMessage
Unit displayNewMessage(MessageListItemWrapper listItem)
-
scrollToBottom
final Unit scrollToBottom()
-
setMessageClickListener
final Unit setMessageClickListener(MessageListView.MessageClickListener messageClickListener)
Sets the message click listener to be used by MessageListView.
- Parameters:
messageClickListener- The listener to use.
-
setMessageLongClickListener
final Unit setMessageLongClickListener(MessageListView.MessageLongClickListener messageLongClickListener)
Sets the message long click listener to be used by MessageListView.
- Parameters:
messageLongClickListener- The listener to use.
-
setMessageRetryListener
final Unit setMessageRetryListener(MessageListView.MessageRetryListener messageRetryListener)
Sets the message retry listener to be used by MessageListView.
- Parameters:
messageRetryListener- The listener to use.
-
setAttachmentClickListener
final Unit setAttachmentClickListener(MessageListView.AttachmentClickListener attachmentClickListener)
Sets the attachment click listener to be used by MessageListView.
- Parameters:
attachmentClickListener- The listener to use.
-
setReactionViewClickListener
final Unit setReactionViewClickListener(MessageListView.ReactionViewClickListener reactionViewClickListener)
Sets the reaction view click listener to be used by MessageListView.
- Parameters:
reactionViewClickListener- The listener to use.
-
setUserClickListener
final Unit setUserClickListener(MessageListView.UserClickListener userClickListener)
Sets the user click listener to be used by MessageListView.
- Parameters:
userClickListener- The listener to use.
-
setReadStateClickListener
final Unit setReadStateClickListener(MessageListView.ReadStateClickListener readStateClickListener)
Sets the read state click listener to be used by MessageListView.
- Parameters:
readStateClickListener- The listener to use.
-
setEndRegionReachedHandler
Unit setEndRegionReachedHandler(Function0<Unit> endRegionReachedHandler)
-
setLastMessageReadHandler
Unit setLastMessageReadHandler(Function0<Unit> lastMessageReadHandler)
-
setOnMessageEditHandler
Unit setOnMessageEditHandler(Function1<Message, Unit> onMessageEditHandler)
-
setOnMessageDeleteHandler
Unit setOnMessageDeleteHandler(Function1<Message, Unit> onMessageDeleteHandler)
-
setOnStartThreadHandler
Unit setOnStartThreadHandler(Function1<Message, Unit> onStartThreadHandler)
-
setOnMessageFlagHandler
Unit setOnMessageFlagHandler(Function1<Message, Unit> onMessageFlagHandler)
-
setOnSendGiphyHandler
Unit setOnSendGiphyHandler(Function2<Message, GiphyAction, Unit> onSendGiphyHandler)
-
setOnMessageRetryHandler
Unit setOnMessageRetryHandler(Function1<Message, Unit> onMessageRetryHandler)
-
setOnStartThreadListener
final Unit setOnStartThreadListener(Function1<Message, Unit> onStartThreadListener)
-
getUnseenButtonEnabled
final Boolean getUnseenButtonEnabled()
-
setUnseenButtonEnabled
final Unit setUnseenButtonEnabled(Boolean unseenButtonEnabled)
-
-
-
-