-
- 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 AttachmentsPickerDialogFragment extends BottomSheetDialogFragmentRepresent the bottom sheet dialog that allows users to pick attachments.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAttachmentsPickerDialogFragment.Companionpublic interfaceAttachmentsPickerDialogFragment.AttachmentsSelectionListenerpublic interfaceAttachmentsPickerDialogFragment.PollSubmissionListener
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AttachmentsPickerDialogFragment()
-
Method Summary
Modifier and Type Method Description LifecyclegetLifecycle()ViewModelStoregetViewModelStore()CreationExtrasgetDefaultViewModelCreationExtras()ViewModelProvider.FactorygetDefaultViewModelProviderFactory()final SavedStateRegistrygetSavedStateRegistry()ViewonCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)UnitonViewCreated(View view, Bundle savedInstanceState)UnitonDismiss(DialogInterface dialog)UnitonDestroyView()UnitonDestroy()IntegergetTheme()final UnitsetStyle(AttachmentsPickerDialogStyle style)Initializes the dialog with the style. final UnitsetAttachmentsPickerTabFactories(List<AttachmentsPickerTabFactory> attachmentsPickerTabFactories)Sets the list of factories for the tabs that will be displayed in the attachment picker. final UnitsetAttachmentSelectionListener(AttachmentSelectionListener attachmentSelectionListener)Sets the listener that will be notified when picking attachments has been completed. final UnitsetAttachmentsSelectionListener(AttachmentsPickerDialogFragment.AttachmentsSelectionListener attachmentsSelectionListener)Sets the listener that will be notified when picking attachments has been completed. final UnitsetPollSubmissionListener(AttachmentsPickerDialogFragment.PollSubmissionListener pollSubmissionListener)Sets the listener that will be notified when poll submission has been completed. -
Methods inherited from class com.google.android.material.bottomsheet.BottomSheetDialogFragment
setupDialog -
Methods inherited from class androidx.appcompat.app.AppCompatDialogFragment
createFragmentContainer, dismissNow, getDialog, getShowsDialog, isCancelable, onActivityCreated, onAttach, onCancel, onCreate, onDetach, onFindViewById, onGetLayoutInflater, onHasView, onSaveInstanceState, onStart, onStop, onViewStateRestored, performCreateView, requireComponentDialog, requireDialog, setCancelable, setShowsDialog, setStyle, show, show, showNow -
Methods inherited from class androidx.fragment.app.DialogFragment
callStartTransitionListener, dump, equals, findFragmentByWho, generateActivityResultKey, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getAnimatingAway, getArguments, getChildFragmentManager, getContext, getEnterAnim, getEnterTransition, getEnterTransitionCallback, getExitAnim, getExitTransition, getExitTransitionCallback, getFocusedView, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLoaderManager, getNextTransition, getParentFragment, getParentFragmentManager, getPopDirection, getPopEnterAnim, getPopExitAnim, getPostOnViewCreatedAlpha, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getSharedElementSourceNames, getSharedElementTargetNames, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, hasOptionsMenu, hashCode, initState, isAdded, isDetached, isHidden, isInBackStack, isInLayout, isMenuVisible, isPostponed, isRemoving, isResumed, isStateSaved, isVisible, noteStateNotSaved, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, performActivityCreated, performAttach, performConfigurationChanged, performContextItemSelected, performCreate, performCreateOptionsMenu, performDestroy, performDestroyView, performDetach, performGetLayoutInflater, performLowMemory, performMultiWindowModeChanged, performOptionsItemSelected, performOptionsMenuClosed, performPause, performPictureInPictureModeChanged, performPrepareOptionsMenu, performPrimaryNavigationFragmentChanged, performResume, performSaveInstanceState, performStart, performStop, performViewCreated, postponeEnterTransition, postponeEnterTransition, registerForActivityResult, registerForActivityResult, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, restoreChildFragmentState, restoreViewState, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setAnimations, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setFocusedView, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setNextTransition, setPopDirection, setPostOnViewCreatedAlpha, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementNames, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu -
Methods inherited from class io.getstream.chat.android.ui.feature.messages.composer.attachment.picker.AttachmentsPickerDialogFragment
dismiss, dismissAllowingStateLoss, onCreateDialog -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getLifecycle
@NonNull() Lifecycle getLifecycle()
-
getViewModelStore
@NonNull() ViewModelStore getViewModelStore()
-
getDefaultViewModelCreationExtras
@NonNull()@CallSuper() CreationExtras getDefaultViewModelCreationExtras()
-
getDefaultViewModelProviderFactory
@NonNull() ViewModelProvider.Factory getDefaultViewModelProviderFactory()
-
getSavedStateRegistry
@NonNull() final SavedStateRegistry getSavedStateRegistry()
-
onCreateView
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onViewCreated
Unit onViewCreated(View view, Bundle savedInstanceState)
-
onDismiss
Unit onDismiss(DialogInterface dialog)
-
onDestroyView
Unit onDestroyView()
-
setStyle
final Unit setStyle(AttachmentsPickerDialogStyle style)
Initializes the dialog with the style.
- Parameters:
style- Style for the dialog.
-
setAttachmentsPickerTabFactories
final Unit setAttachmentsPickerTabFactories(List<AttachmentsPickerTabFactory> attachmentsPickerTabFactories)
Sets the list of factories for the tabs that will be displayed in the attachment picker.
-
setAttachmentSelectionListener
@Deprecated(message = Use the new [AttachmentsSelectionListener] interface instead, level = DeprecationLevel.WARNING, replaceWith = @ReplaceWith(imports = {io.getstream.chat.android.ui.feature.messages.composer.attachment.picker.AttachmentsPickerDialogFragment.AttachmentsSelectionListener}, expression = setAttachmentsSelectionListener(attachmentsSelectionListener))) final Unit setAttachmentSelectionListener(AttachmentSelectionListener attachmentSelectionListener)
Sets the listener that will be notified when picking attachments has been completed.
-
setAttachmentsSelectionListener
final Unit setAttachmentsSelectionListener(AttachmentsPickerDialogFragment.AttachmentsSelectionListener attachmentsSelectionListener)
Sets the listener that will be notified when picking attachments has been completed.
-
setPollSubmissionListener
final Unit setPollSubmissionListener(AttachmentsPickerDialogFragment.PollSubmissionListener pollSubmissionListener)
Sets the listener that will be notified when poll submission has been completed.
-
-
-
-