MessageListView

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...?)

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, attrs: AttributeSet?)
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int)

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun interface CustomActionHandler
Link copied to clipboard
Link copied to clipboard
fun interface ErrorEventHandler
Link copied to clipboard
Link copied to clipboard
fun interface GiphySendHandler
Link copied to clipboard
Link copied to clipboard
fun interface MessageDeleteHandler
Link copied to clipboard
fun interface MessageEditHandler
Link copied to clipboard
fun interface MessageFlagHandler
Link copied to clipboard

Predicate object with a filter condition for MessageListItem. Used to filter a list of MessageListItem before applying it to MessageListView.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun interface MessagePinHandler
Link copied to clipboard
Link copied to clipboard
fun interface MessageReplyHandler
Link copied to clipboard
fun interface MessageRetryHandler
Link copied to clipboard
fun interface MessageUnpinHandler
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Listener for clicks on the "Add a comment" button of a poll that allows answers.

Link copied to clipboard
Link copied to clipboard
fun interface OnEnterThreadListener
Link copied to clipboard
fun interface OnGiphySendListener
Link copied to clipboard
fun interface OnLinkClickListener
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Listener for clicks on the "Suggest an option" button of a poll that allows user-suggested options.

Link copied to clipboard
fun interface OnThreadClickListener
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun interface OnUserClickListener
Link copied to clipboard

Interface definition for a callback to be invoked when a user reaction is clicked on the message options overlay.

Link copied to clipboard

Listener for clicks on the "View comments" button of a poll that has answers.

Link copied to clipboard
Link copied to clipboard
fun interface OpenThreadHandler
Link copied to clipboard
fun interface ShowAvatarPredicate

Predicate object with a filter condition for MessageListItem. Used to filter a list of MessageListItem before applying it to MessageListView.

Link copied to clipboard
fun interface ThreadStartHandler
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Ensures the context being accessed in a View can be cast to Activity.

Link copied to clipboard
open var alpha: Float
Link copied to clipboard
open var animation: Animation?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val autofillHints: Array<out String?>??
Link copied to clipboard
Link copied to clipboard
open val autofillType: Int
Link copied to clipboard
Link copied to clipboard
open var background: Drawable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val baseline: Int
Link copied to clipboard
var bottom: Int
Link copied to clipboard
Link copied to clipboard
open val childCount: Int
Link copied to clipboard
open var clipBounds: Rect?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val display: Display?
Link copied to clipboard
Link copied to clipboard
open val drawingCache: Bitmap?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val drawingTime: Long
Link copied to clipboard
open var elevation: Float
Link copied to clipboard
open val explicitStyle: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var focusable: Int
Link copied to clipboard
open val focusedChild: View?
Link copied to clipboard
open var foreground: Drawable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val handler: Handler?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
open var id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isDirty: Boolean
Link copied to clipboard
Link copied to clipboard
open var isEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isFocused: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var isHovered: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isLaidOut: Boolean
Link copied to clipboard
Link copied to clipboard
open override val isLayoutRequested: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isOpaque: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var isPressed: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isShown: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val isTextAlignmentResolved: Boolean
Link copied to clipboard
open override val isTextDirectionResolved: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var labelFor: Int
Link copied to clipboard
open val layerType: Int
Link copied to clipboard
Link copied to clipboard
open override var layoutDirection: Int
Link copied to clipboard
open var layoutMode: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var left: Int
Link copied to clipboard
open val matrix: Matrix?
Link copied to clipboard
open var maxHeight: Int
Link copied to clipboard
open var maxWidth: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var minHeight: Int
Link copied to clipboard
open var minimumHeight: Int
Link copied to clipboard
open var minimumWidth: Int
Link copied to clipboard
open var minWidth: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var nextFocusUpId: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val paddingBottom: Int
Link copied to clipboard
open val paddingEnd: Int
Link copied to clipboard
open val paddingLeft: Int
Link copied to clipboard
open val paddingRight: Int
Link copied to clipboard
open val paddingStart: Int
Link copied to clipboard
open val paddingTop: Int
Link copied to clipboard
override val parent: ViewParent?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var pivotX: Float
Link copied to clipboard
open var pivotY: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val resources: Resources?
Link copied to clipboard
Link copied to clipboard
var right: Int
Link copied to clipboard
Link copied to clipboard
open val rootView: View?
Link copied to clipboard
Link copied to clipboard
open var rotation: Float
Link copied to clipboard
open var rotationX: Float
Link copied to clipboard
open var rotationY: Float
Link copied to clipboard
open var scaleX: Float
Link copied to clipboard
open var scaleY: Float
Link copied to clipboard
open val sceneString: String?
Link copied to clipboard
Link copied to clipboard
open var scrollBarSize: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val solidColor: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var tag: Any?
Link copied to clipboard
open override var textAlignment: Int
Link copied to clipboard
open override var textDirection: Int
Link copied to clipboard
Link copied to clipboard
var top: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var visibility: Int
Link copied to clipboard
val width: Int
Link copied to clipboard
open val windowId: WindowId?
Link copied to clipboard
Link copied to clipboard
open val windowToken: IBinder?
Link copied to clipboard
Link copied to clipboard
open var x: Float
Link copied to clipboard
open var y: Float
Link copied to clipboard
open var z: Float

Functions

Link copied to clipboard
open fun addChildrenForAccessibility(outChildren: ArrayList<View?>?)
Link copied to clipboard
open fun addExtraDataToAccessibilityNodeInfo(info: AccessibilityNodeInfo, extraDataKey: String, arguments: Bundle?)
Link copied to clipboard
open fun addFocusables(views: ArrayList<View?>?, direction: Int)
open fun addFocusables(views: ArrayList<View?>?, direction: Int, focusableMode: Int)
Link copied to clipboard
open fun addKeyboardNavigationClusters(views: Collection<View?>, direction: Int)
Link copied to clipboard
Link copied to clipboard
open fun addTouchables(views: ArrayList<View?>?)
Link copied to clipboard
Link copied to clipboard
open fun addView(child: View?)
open fun addView(child: View?, index: Int)
open fun addView(child: View?, index: Int, params: ViewGroup.LayoutParams?)
open fun addView(child: View?, width: Int, height: Int)
open fun addView(child: View?, params: ViewGroup.LayoutParams?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun autofill(values: SparseArray<AutofillValue?>)
open fun autofill(value: AutofillValue?)
Link copied to clipboard
open fun bringChildToFront(child: View?)
Link copied to clipboard
open fun bringToFront()
Link copied to clipboard
open fun buildDrawingCache(autoScale: Boolean)
Link copied to clipboard
open fun buildLayer()
Link copied to clipboard
open fun callOnClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun cancelLongPress()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun canScrollHorizontally(direction: Int): Boolean
Link copied to clipboard
open fun canScrollVertically(direction: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun childHasTransientStateChanged(child: View, childHasTransientState: Boolean)
Link copied to clipboard
open fun clearAnimation()
Link copied to clipboard
open fun clearChildFocus(child: View?)
Link copied to clipboard
Link copied to clipboard
open fun clearFocus()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun computeScroll()
Link copied to clipboard
open fun computeSystemWindowInsets(in: WindowInsets?, outLocalInsets: Rect?): WindowInsets?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchCreateViewTranslationRequest(viewIds: Map<AutofillId?, LongArray?>, supportedFormats: IntArray, capability: TranslationCapability?, requests: List<ViewTranslationRequest?>)
Link copied to clipboard
open fun dispatchDisplayHint(hint: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchKeyEvent(event: KeyEvent?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
Link copied to clipboard
open fun dispatchNestedPreFling(velocityX: Float, velocityY: Float): Boolean
Link copied to clipboard
open fun dispatchNestedPreScroll(dx: Int, dy: Int, consumed: IntArray?, offsetInWindow: IntArray?): Boolean
Link copied to clipboard
open fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, offsetInWindow: IntArray?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget?>)
Link copied to clipboard
open fun dispatchSetActivated(activated: Boolean)
Link copied to clipboard
open fun dispatchSetSelected(selected: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchUnhandledMove(focused: View?, direction: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun dispatchWindowVisibilityChanged(visibility: Int)
Link copied to clipboard
fun displayNewMessages(messageListItemWrapper: MessageListItemWrapper)

Shows the message list items.

Link copied to clipboard
open fun draw(canvas: Canvas)
Link copied to clipboard
Link copied to clipboard
open fun endViewTransition(view: View?)
Link copied to clipboard
open fun fillMetrics(metrics: androidx/constraintlayout/core/Metrics??)
Link copied to clipboard
open fun findFocus(): View?
Link copied to clipboard
fun <T : View?> findViewById(id: Int): T?
Link copied to clipboard
open fun findViewsWithText(outViews: ArrayList<View?>?, text: CharSequence?, flags: Int)
Link copied to clipboard
fun <T : View?> findViewWithTag(tag: Any?): T?
Link copied to clipboard
Link copied to clipboard
open fun focusSearch(direction: Int): View?
open fun focusSearch(focused: View?, direction: Int): View?
Link copied to clipboard
open fun forceHasOverlappingRendering(hasOverlappingRendering: Boolean)
Link copied to clipboard
open fun forceLayout()
Link copied to clipboard
Link copied to clipboard
open fun generateDisplayHash(hashAlgorithm: String, bounds: Rect?, executor: Executor, callback: DisplayHashResultCallback)
Link copied to clipboard
Link copied to clipboard
open fun getChildAt(index: Int): View?
Link copied to clipboard
fun getChildDrawingOrder(drawingPosition: Int): Int
Link copied to clipboard
open fun getChildVisibleRect(child: View?, r: Rect?, offset: Point?): Boolean
Link copied to clipboard
open fun getDesignInformation(type: Int, value: Any?): Any?
Link copied to clipboard
open fun getDrawingRect(outRect: Rect?)
Link copied to clipboard
open fun getFocusables(direction: Int): ArrayList<View?>?
Link copied to clipboard
open fun getFocusedRect(r: Rect?)
Link copied to clipboard
open fun getGlobalVisibleRect(r: Rect?, globalOffset: Point?): Boolean
Link copied to clipboard
open fun getHitRect(outRect: Rect?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getLocationInSurface(location: IntArray)
Link copied to clipboard
open fun getLocationInWindow(outLocation: IntArray?)
Link copied to clipboard
open fun getLocationOnScreen(outLocation: IntArray?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the inner RecyclerView that is used to display a list of message list items.

Link copied to clipboard
open fun getTextAlignment(): Int
Link copied to clipboard
open fun getTextDirection(): Int
Link copied to clipboard
open fun getViewById(id: Int): View?
Link copied to clipboard
fun getViewWidget(view: View?): androidx/constraintlayout/core/widgets/ConstraintWidget??
Link copied to clipboard
Link copied to clipboard
fun handleFlagMessageResult(result: Result<Flag>)
Link copied to clipboard
Link copied to clipboard
open fun hasFocus(): Boolean
Link copied to clipboard
open fun hasFocusable(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Hides the empty view.

Link copied to clipboard

Hides the loading view.

Link copied to clipboard

Hide the unread label button.

Link copied to clipboard
open fun indexOfChild(child: View?): Int
Link copied to clipboard
open fun invalidate()
open fun invalidate(dirty: Rect?)
open fun invalidate(l: Int, t: Int, r: Int, b: Int)
Link copied to clipboard
fun invalidateChild(child: View?, dirty: Rect?)
Link copied to clipboard
open fun invalidateChildInParent(location: IntArray?, dirty: Rect?): ViewParent?
Link copied to clipboard
open fun invalidateDrawable(drawable: Drawable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isVisibleToUserForAutofill(virtualId: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun keyboardNavigationClusterSearch(currentCluster: View?, direction: Int): View?
Link copied to clipboard
fun layout(l: Int, t: Int, r: Int, b: Int)
Link copied to clipboard
open fun loadLayoutDescription(layoutDescription: Int)
Link copied to clipboard
fun measure(widthMeasureSpec: Int, heightMeasureSpec: Int)
Link copied to clipboard
open fun notifySubtreeAccessibilityStateChanged(child: View, source: View, changeType: Int)
Link copied to clipboard
fun offsetDescendantRectToMyCoords(descendant: View?, rect: Rect?)
Link copied to clipboard
open fun offsetLeftAndRight(offset: Int)
Link copied to clipboard
fun offsetRectIntoDescendantCoords(descendant: View?, rect: Rect?)
Link copied to clipboard
open fun offsetTopAndBottom(offset: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onCreateViewTranslationRequest(supportedFormats: IntArray, requestsCollector: Consumer<ViewTranslationRequest?>)
Link copied to clipboard
open fun onCreateVirtualViewTranslationRequests(virtualIds: LongArray, supportedFormats: IntArray, requestsCollector: Consumer<ViewTranslationRequest?>)
Link copied to clipboard
open fun onDescendantInvalidated(child: View, target: View)
Link copied to clipboard
open fun onDragEvent(event: DragEvent?): Boolean
Link copied to clipboard
open fun onDrawForeground(canvas: Canvas)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onHoverChanged(hovered: Boolean)
Link copied to clipboard
open fun onHoverEvent(event: MotionEvent?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyLongPress(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyMultiple(keyCode: Int, repeatCount: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyPreIme(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyShortcut(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onNestedFling(target: View, velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
Link copied to clipboard
open fun onNestedPreFling(target: View, velocityX: Float, velocityY: Float): Boolean
Link copied to clipboard
open fun onNestedPrePerformAccessibilityAction(target: View, action: Int, args: Bundle?): Boolean
Link copied to clipboard
open fun onNestedPreScroll(target: View, dx: Int, dy: Int, consumed: IntArray)
Link copied to clipboard
open fun onNestedScroll(target: View, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int)
Link copied to clipboard
open fun onNestedScrollAccepted(child: View, target: View, axes: Int)
Link copied to clipboard
open fun onPointerCaptureChange(hasCapture: Boolean)
Link copied to clipboard
open fun onProvideAutofillStructure(structure: ViewStructure?, flags: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onProvideStructure(structure: ViewStructure?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onResolvePointerIcon(event: MotionEvent?, pointerIndex: Int): PointerIcon?
Link copied to clipboard
open fun onRtlPropertiesChanged(layoutDirection: Int)
Link copied to clipboard
open fun onScreenStateChanged(screenState: Int)
Link copied to clipboard
open fun onScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget?>)
Link copied to clipboard
open fun onStartNestedScroll(child: View, target: View, nestedScrollAxes: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun onStopNestedScroll(child: View)
Link copied to clipboard
open fun onTouchEvent(event: MotionEvent?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun onViewAdded(view: View?)
Link copied to clipboard
open fun onViewRemoved(view: View?)
Link copied to clipboard
Link copied to clipboard
open fun onVisibilityAggregated(isVisible: Boolean)
Link copied to clipboard
open fun onWindowFocusChanged(hasWindowFocus: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun performAccessibilityAction(action: Int, arguments: Bundle?): Boolean
Link copied to clipboard
open fun performClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun performHapticFeedback(feedbackConstant: Int): Boolean
open fun performHapticFeedback(feedbackConstant: Int, flags: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun playSoundEffect(soundConstant: Int)
Link copied to clipboard
open fun post(action: Runnable?): Boolean
Link copied to clipboard
open fun postDelayed(action: Runnable?, delayMillis: Long): Boolean
Link copied to clipboard
open fun postInvalidate()
open fun postInvalidate(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun postInvalidateDelayed(delayMilliseconds: Long)
open fun postInvalidateDelayed(delayMilliseconds: Long, left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun postInvalidateOnAnimation(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun postOnAnimation(action: Runnable?)
Link copied to clipboard
open fun postOnAnimationDelayed(action: Runnable?, delayMillis: Long)
Link copied to clipboard
open fun recomputeViewAttributes(child: View?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun removeAllViews()
Link copied to clipboard
Link copied to clipboard
open fun removeCallbacks(action: Runnable?): Boolean
Link copied to clipboard
open fun removeView(view: View?)
Link copied to clipboard
open fun removeViewAt(index: Int)
Link copied to clipboard
open fun removeViewInLayout(view: View?)
Link copied to clipboard
open fun removeViews(start: Int, count: Int)
Link copied to clipboard
open fun removeViewsInLayout(start: Int, count: Int)
Link copied to clipboard
Link copied to clipboard
open fun requestChildFocus(child: View?, focused: View?)
Link copied to clipboard
open fun requestChildRectangleOnScreen(child: View, rectangle: Rect?, immediate: Boolean): Boolean
Link copied to clipboard
open fun requestDisallowInterceptTouchEvent(disallowIntercept: Boolean)
Link copied to clipboard
Link copied to clipboard
fun requestFocus(direction: Int): Boolean
open fun requestFocus(direction: Int, previouslyFocusedRect: Rect?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun requestLayout()
Link copied to clipboard
Link copied to clipboard
open fun requestRectangleOnScreen(rectangle: Rect?): Boolean
open fun requestRectangleOnScreen(rectangle: Rect?, immediate: Boolean): Boolean
Link copied to clipboard
Link copied to clipboard
open fun requestTransparentRegion(child: View?)
Link copied to clipboard

Returns an instance of MessageListViewStyle associated with this instance of MessageListView. Be sure invoke this method after this view laid out on layout and already initialized, otherwise you'll get an exception.

Link copied to clipboard
fun <T : View?> requireViewById(id: Int): T & Any
Link copied to clipboard
open fun resetPivot()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun saveAttributeDataForStyleable(context: Context, styleable: IntArray, attrs: AttributeSet?, t: TypedArray, defStyleAttr: Int, defStyleRes: Int)
Link copied to clipboard
open fun saveHierarchyState(container: SparseArray<Parcelable?>?)
Link copied to clipboard
open fun scheduleDrawable(who: Drawable, what: Runnable, when: Long)
Link copied to clipboard
Link copied to clipboard
open fun scrollBy(x: Int, y: Int)
Link copied to clipboard
open fun scrollTo(x: Int, y: Int)
Link copied to clipboard

Scrolls the message list to the bottom.sl

Link copied to clipboard
fun scrollToMessage(message: Message)

Scrolls the list to the target message and highlights it. Only works if the target message is already present in the list.

Link copied to clipboard
open fun sendAccessibilityEvent(eventType: Int)
Link copied to clipboard
open fun setAccessibilityDataSensitive(accessibilityDataSensitive: Int)
Link copied to clipboard
open fun setAddStatesFromChildren(addsStates: Boolean)
Link copied to clipboard
open fun setAllowClickWhenDisabled(clickableWhenDisabled: Boolean)
Link copied to clipboard
open fun setAllowedHandwritingDelegatePackage(allowedPackageName: String?)
Link copied to clipboard
open fun setAllowedHandwritingDelegatorPackage(allowedPackageName: String?)
Link copied to clipboard

Sets the handler used when deleting an attachment from the gallery screen.

Link copied to clipboard

Sets the handler used when the attachment is going to be downloaded.

Link copied to clipboard

Allows clients to set an instance of AttachmentFactoryManager that holds a list of custom attachment factories. Use this method to create a custom content view for the message attachments.

Link copied to clipboard

Sets the handler used when replying to an attachment from the gallery screen.

Sets the handler used when navigating to a message from the gallery screen.

Link copied to clipboard
open fun setAutofillHints(vararg autofillHints: String?)
Link copied to clipboard
open fun setBackgroundColor(color: Int)
Link copied to clipboard
open fun setBackgroundDrawable(background: Drawable?)
Link copied to clipboard
open fun setBackgroundResource(resid: Int)
Link copied to clipboard

Sets the handler used when the bottom end region is reached. This runs whe list of messages in this view becomes non linear and it will be called until it becomes linear again.

Link copied to clipboard

Sets the handler used to confirm that the message is going to be deleted.

Link copied to clipboard

Sets the handler used to confirm that the message is going to be flagged.

Link copied to clipboard
Link copied to clipboard

Enables or disables the message copy feature.

Link copied to clipboard

Set the handler used when the custom action is going to be executed.

Link copied to clipboard

Set a custom item animator for MessageListView. That will handle animations involving changes to the items in this MessageListView.

Link copied to clipboard

Set a custom layout manager for MessageListView. This can be used to change orientation of messages.

Link copied to clipboard

Enables or disables the message delete confirmation showing.

Link copied to clipboard

Enables or disables the message deleting feature.

Link copied to clipboard
open fun setDesignInformation(type: Int, value1: Any?, value2: Any?)
Link copied to clipboard

Sets the handler used when downloading an attachment from the gallery screen.

Link copied to clipboard

Enables or disables the message editing feature.

Link copied to clipboard
fun setEmptyStateView(view: View, layoutParams: FrameLayout.LayoutParams = defaultChildLayoutParams)

Sets the view to be displayed when the message list is empty.

Link copied to clipboard

Sets the handler used when the end region is reached.

Link copied to clipboard

Sets the handler used when handling the errors defined in MessageListController.ErrorEvent.

Link copied to clipboard
open fun setFadingEdgeLength(length: Int)
Link copied to clipboard

Sets the handler used to handle flag message result.

Link copied to clipboard

Sets the handler used when giphy action is going to be performed.

Link copied to clipboard
open fun setHandwritingBoundsOffsets(offsetLeft: Float, offsetTop: Float, offsetRight: Float, offsetBottom: Float)
Link copied to clipboard
open fun setHasTransientState(hasTransientState: Boolean)
Link copied to clipboard
open fun setIsCredential(isCredential: Boolean)
Link copied to clipboard
open fun setIsHandwritingDelegate(isHandwritingDelegate: Boolean)
Link copied to clipboard

Sets the handler used when the last message is read.

Link copied to clipboard
open fun setLayerPaint(paint: Paint?)
Link copied to clipboard
open fun setLayerType(layerType: Int, paint: Paint?)
Link copied to clipboard
fun setLeftTopRightBottom(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
fun setLoadingMore(loadingMore: Boolean)

Used to indicate that the message list is loading more messages.

Link copied to clipboard
fun setLoadingView(view: View, layoutParams: FrameLayout.LayoutParams = defaultChildLayoutParams)

Sets the view to be displayed when the message list is loading.

Link copied to clipboard

Allows clients to set a custom implementation of MessageBackgroundFactory. Use this method if you want to change the background of messages

Link copied to clipboard
fun setMessageDateFormatter(messageDateFormatter: DateFormatter)

Allows clients to set a custom implementation of DateFormatter to format the message date.

Link copied to clipboard

Sets the handler used when the the message is going to be deleted.

Link copied to clipboard

Sets the handler used to let the message input know when we are editing a message.

Link copied to clipboard

Enables or disables the message flagging feature.

Link copied to clipboard

Sets the handler used when the message is going to be flagged.

Link copied to clipboard

Allows to transform the message list data before it is rendered on the screen.

Link copied to clipboard

Allows applying a filter condition to the message list before it is rendered.

Link copied to clipboard

Sets the handler used to handle when the message is going to be marked as read.

Link copied to clipboard

Allows clients to set a custom implementation of MessageOptionItemsFactory. Use this method if you want to change the message options on the message options overlay.

Link copied to clipboard

Sets the handler used to handle when the message is going to be pinned.

Link copied to clipboard

Sets the handler used when a reaction for the message is going to be send.

Link copied to clipboard

Sets the handler used when the message is going to be replied in the channel.

Link copied to clipboard

Sets the handler used when the failed message is going to be retried.

Link copied to clipboard

Sets the handler used to handle when the message is going to be unpinned.

Link copied to clipboard

Set a handler used to handle when a user is blocked.

Link copied to clipboard

Set a handler for the user unblock action.

Link copied to clipboard
fun setMessageViewHolderFactory(messageListItemViewHolderFactory: MessageListItemViewHolderFactory)

Allows clients to set a custom implementation of MessageListItemViewHolderFactory. Use this method if you want completely custom views for the message list items.

Link copied to clipboard

Sets the handler used when the user interacts with ModeratedMessageDialogFragment.

Link copied to clipboard

Used to control whether the message list is scrolled to the bottom when new messages arrive or the unread count badge is incremented instead.

Link copied to clipboard

Set the Add Poll Comment click listener to be used by MessageListView.

Link copied to clipboard

Sets the attachment click listener to be used by MessageListView.

Link copied to clipboard

Sets the attachment download click listener to be used by MessageListView.

Link copied to clipboard
Link copied to clipboard
open fun setOnConstraintsChanged(constraintsChangedListener: ConstraintsChangedListener?)
Link copied to clipboard
Link copied to clipboard

Sets the thread click listener to be used by MessageListView.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sets the link click listener to be used by MessageListView.

Link copied to clipboard

Sets the mention click listener to be used by MessageListView.

Link copied to clipboard

Sets the message click listener to be used by MessageListView.

Link copied to clipboard

Sets the message long click listener to be used by MessageListView.

Link copied to clipboard

Sets the message retry listener to be used by MessageListView.

Link copied to clipboard

Sets the moderated message long click listener to be used by MessageListView.

Sets the handler for pausing the audio recording attachments.

Link copied to clipboard

Set the Poll Close click listener to be used by MessageListView.

Link copied to clipboard

Set the Poll Option click listener to be used by MessageListView.

Link copied to clipboard

Sets the reaction view click listener to be used by MessageListView.

Link copied to clipboard
open fun setOnReceiveContentListener(mimeTypes: Array<out String?>??, listener: OnReceiveContentListener?)
Link copied to clipboard

Sets the click listener to be used when a message that is a reply is clicked.

Link copied to clipboard

Sets the handler used when the user interacts with ScrollButtonView.

Link copied to clipboard

Set the Suggest Poll Option click listener to be used by MessageListView.

Link copied to clipboard

Sets the thread click listener to be used by MessageListView.

Link copied to clipboard
Link copied to clipboard

Sets the handler used when the user interacts with the unread label.

Link copied to clipboard

Sets the handler used when the unread label is reached.

Link copied to clipboard

Sets the user click listener to be used by MessageListView.

Link copied to clipboard

Sets the click listener to be used when a reaction left by a user is clicked on the message options overlay.

Link copied to clipboard

Set the View Poll Comments click listener to be used by MessageListView.

Link copied to clipboard

Set the View Poll Result click listener to be used by MessageListView.

Link copied to clipboard

Sets the handler used when opening a thread.

Link copied to clipboard
fun setOwnCapabilities(ownCapabilities: Set<String>)

Setter method for own capabilities which dictate which parts of the UI are enabled or disabled for the current user in the given channel.

Link copied to clipboard
open fun setPadding(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)
Link copied to clipboard

Enables or disables the message reactions feature.

Link copied to clipboard
open fun setRenderEffect(renderEffect: RenderEffect?)
Link copied to clipboard

Enables or disables the message threading feature.

Link copied to clipboard
fun setScrollToBottomButtonEnabled(scrollToBottomButtonEnabled: Boolean)

Enables or disables the scroll to bottom button.

Link copied to clipboard

Used to control the visibility of the user avatar for a particular message list item.

Link copied to clipboard
open fun setState(id: Int, screenWidth: Int, screenHeight: Int)
Link copied to clipboard

Enables or disables the message threading feature.

Link copied to clipboard

Sets the handler used when a new thread for the message is started.

Link copied to clipboard

Sets the handler used when the message translation is toggled.

Link copied to clipboard
open fun setTransitionVisibility(visibility: Int)
Link copied to clipboard
open fun setWillNotCacheDrawing(willNotCacheDrawing: Boolean)
Link copied to clipboard
open fun setWillNotDraw(willNotDraw: Boolean)
Link copied to clipboard

Enables fetch for messages at the bottom.

Link copied to clipboard
Link copied to clipboard
open fun showContextMenuForChild(originalView: View?): Boolean
open fun showContextMenuForChild(originalView: View?, x: Float, y: Float): Boolean
Link copied to clipboard

Shows the empty view.

Link copied to clipboard

Shows a error for one of the reasons defined in MessageListController.ErrorEvent.

Link copied to clipboard

Shows the loading view.

Link copied to clipboard
fun showMessageOptionsDialog(fragmentManager: FragmentManager, message: Message, messageOptionItems: List<MessageOptionItem>, reactionClickListener: (Message, String) -> Unit = { message: Message, reactionType: String -> messageReactionHandler.onMessageReaction(message, reactionType) }, optionClickListener: (MessageAction) -> Unit = { messageAction: MessageAction -> handleMessageAction(messageAction) })

Show message options dialog for the given set of message options.

Link copied to clipboard

Used to display the moderated message dialog when you long click on a message that has failed the moderation check.

Link copied to clipboard
fun View.showToast(@StringRes resId: Int)
Link copied to clipboard
fun showUnreadLabelButton(unreadCount: Int)

Show the unread label button.

Link copied to clipboard
Link copied to clipboard
open fun startActionModeForChild(originalView: View?, callback: ActionMode.Callback?): ActionMode?
open fun startActionModeForChild(originalView: View?, callback: ActionMode.Callback?, type: Int): ActionMode?
Link copied to clipboard
open fun startAnimation(animation: Animation?)
Link copied to clipboard
fun startDrag(data: ClipData?, shadowBuilder: View.DragShadowBuilder?, myLocalState: Any?, flags: Int): Boolean
Link copied to clipboard
fun startDragAndDrop(data: ClipData?, shadowBuilder: View.DragShadowBuilder?, myLocalState: Any?, flags: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun startNestedScroll(axes: Int): Boolean
Link copied to clipboard
open fun startViewTransition(view: View?)
Link copied to clipboard
open fun stopNestedScroll()
Link copied to clipboard
open fun suppressLayout(suppress: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun transformMatrixToLocal(matrix: Matrix)
Link copied to clipboard
open fun unscheduleDrawable(who: Drawable, what: Runnable)
Link copied to clipboard
fun updateChannel(channel: Channel)

Updates the channel object used by the message list and initializes adapter if it's not initialized yet.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun updateViewLayout(view: View?, params: ViewGroup.LayoutParams?)
Link copied to clipboard
Link copied to clipboard
open fun willNotDraw(): Boolean