Class MessageOptionsDialogFragment
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.DialogInterface.OnCancelListener,android.content.DialogInterface.OnDismissListener,android.view.View.OnCreateContextMenuListener,androidx.activity.result.ActivityResultCaller,androidx.lifecycle.HasDefaultViewModelProviderFactory,androidx.lifecycle.LifecycleOwner,androidx.lifecycle.ViewModelStoreOwner,androidx.savedstate.SavedStateRegistryOwner
public final class MessageOptionsDialogFragment extends FullScreenDialogFragment
An overlay with available message options to the selected message. Also, allows leaving a reaction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceMessageOptionsDialogFragment.ReactionClickListenerA listener for reaction clicks.
public interfaceMessageOptionsDialogFragment.UserReactionClickListenerA listener for clicks on users who left the reactions.
public interfaceMessageOptionsDialogFragment.MessageOptionClickListenerA listener for message option clicks.
public enumMessageOptionsDialogFragment.OptionsDialogTypeRepresents the type of message options dialogs.
public classMessageOptionsDialogFragment.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringTAGpublic final StringmPreviousWhoprivate final Lifecyclelifecycleprivate final ViewModelStoreviewModelStoreprivate final CreationExtrasdefaultViewModelCreationExtrasprivate final ViewModelProvider.FactorydefaultViewModelProviderFactoryprivate final SavedStateRegistrysavedStateRegistrypublic final static MessageOptionsDialogFragment.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description MessageOptionsDialogFragment()
-
Method Summary
Modifier and Type Method Description ViewonCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)UnitonViewCreated(View view, Bundle savedInstanceState)UnitonDestroyView()UnitonDestroy()final UnitsetReactionClickListener(MessageOptionsDialogFragment.ReactionClickListener reactionClickListener)Allows clients to set a click listener for reactions in the reaction butbble. final UnitsetUserReactionClickListener(MessageOptionsDialogFragment.UserReactionClickListener userReactionClickListener)Allows clients to set a click listener for reactions in the reaction butbble. final UnitsetMessageOptionClickListener(MessageOptionsDialogFragment.MessageOptionClickListener messageOptionClickListener)Allows clients to set a click listener for message option items. UnitonStart()-
Methods inherited from class androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelCreationExtras, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hasOptionsMenu, hashCode, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, postponeEnterTransition, postponeEnterTransition, registerForActivityResult, registerForActivityResult, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu -
Methods inherited from class io.getstream.chat.android.ui.widgets.FullScreenDialogFragment
onCreate, onCreateDialog -
Methods inherited from class androidx.fragment.app.DialogFragment
dismiss, dismissAllowingStateLoss, dismissNow, getDialog, getShowsDialog, getTheme, isCancelable, onActivityCreated, onAttach, onCancel, onDetach, onDismiss, onGetLayoutInflater, onSaveInstanceState, onStop, onViewStateRestored, requireComponentDialog, requireDialog, setCancelable, setShowsDialog, setStyle, setupDialog, show, show, showNow -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onCreateView
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onViewCreated
Unit onViewCreated(View view, Bundle savedInstanceState)
-
onDestroyView
Unit onDestroyView()
-
setReactionClickListener
final Unit setReactionClickListener(MessageOptionsDialogFragment.ReactionClickListener reactionClickListener)
Allows clients to set a click listener for reactions in the reaction butbble.
- Parameters:
reactionClickListener- The callback to be invoked on reaction item click.
-
setUserReactionClickListener
final Unit setUserReactionClickListener(MessageOptionsDialogFragment.UserReactionClickListener userReactionClickListener)
Allows clients to set a click listener for reactions in the reaction butbble.
- Parameters:
userReactionClickListener- The callback to be invoked on user reaction item click.
-
setMessageOptionClickListener
final Unit setMessageOptionClickListener(MessageOptionsDialogFragment.MessageOptionClickListener messageOptionClickListener)
Allows clients to set a click listener for message option items.
- Parameters:
messageOptionClickListener- The callback to be invoked on message option item click.
-
-
-
-