Class AttachmentsPickerDialogFragment
-
- 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 interfaceAttachmentsPickerDialogFragment.AttachmentsSelectionListenerpublic classAttachmentsPickerDialogFragment.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 AttachmentsPickerDialogFragment.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description AttachmentsPickerDialogFragment()
-
Method Summary
Modifier and Type Method Description ViewonCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)UnitonViewCreated(View view, Bundle savedInstanceState)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. -
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 androidx.appcompat.app.AppCompatDialogFragment
setupDialog -
Methods inherited from class androidx.fragment.app.DialogFragment
dismissNow, getDialog, getShowsDialog, isCancelable, onActivityCreated, onAttach, onCancel, onCreate, onDetach, onDismiss, onGetLayoutInflater, onSaveInstanceState, onStart, onStop, onViewStateRestored, requireComponentDialog, requireDialog, setCancelable, setShowsDialog, setStyle, show, show, showNow -
Methods inherited from class com.google.android.material.bottomsheet.BottomSheetDialogFragment
dismiss, dismissAllowingStateLoss, onCreateDialog -
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()
-
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.
-
-
-
-