Class BottomSheet

  • 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 , com.discord.app.AppComponent , com.discord.app.AppPermissionsRequests

    
    public class BottomSheet
    extends AppBottomSheet
                        

    AppBottomSheet with helper methods

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      BottomSheet()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      int getContentViewResId()
      void onViewCreated(View view, Bundle bundle)
      LinearLayout getLinearLayout() Returns the LinearLayout associated with this BottomSheet
      final void setPadding(int p) Sets the padding of the LinearLayout associated with this BottomSheet
      void clear() Removes all views of the LinearLayout associated with this BottomSheet
      final void addView(View view) Adds a view to the LinearLayout associated with this BottomSheet
      final void removeView(View view) Removes a view from the LinearLayout associated with this BottomSheet
      • Methods inherited from class com.discord.app.AppBottomSheet

        bindSubscriptions, dismiss, getAppActivity, getArgumentsOrDefault, getLoggingConfig, getUnsubscribeSignal, hasMedia, hideKeyboard, hideKeyboard$default, onCreate, onCreateDialog, onCreateView, onDestroyView, onPause, onResume, onStateChanged, requestCameraQRScanner, requestContacts, requestMedia, requestMediaDownload, requestMicrophone, requestVideoCallPermissions, requireAppActivity, setBottomSheetCollapsedStateDisabled, setBottomSheetState, setOnClickAndDismissListener, setPeekHeightBottomView, show, show, showKeyboard, updatePeekHeightPx
      • Methods inherited from class com.google.android.material.bottomsheet.BottomSheetDialogFragment

        dismissAllowingStateLoss
      • Methods inherited from class androidx.appcompat.app.AppCompatDialogFragment

        setupDialog
      • Methods inherited from class androidx.fragment.app.DialogFragment

        getDialog, getShowsDialog, getTheme, isCancelable, onAttach, onCancel, onDetach, onDismiss, onGetLayoutInflater, onSaveInstanceState, onStart, onStop, onViewStateRestored, requireDialog, setCancelable, setShowsDialog, setStyle, showNow
      • Methods inherited from class androidx.fragment.app.Fragment

        dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hasOptionsMenu, hashCode, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, postponeEnterTransition, 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, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BottomSheet

        BottomSheet()
    • Method Detail

      • setPadding

         final void setPadding(int p)

        Sets the padding of the LinearLayout associated with this BottomSheet

      • clear

         void clear()

        Removes all views of the LinearLayout associated with this BottomSheet

      • addView

         final void addView(View view)

        Adds a view to the LinearLayout associated with this BottomSheet

      • removeView

         final void removeView(View view)

        Removes a view from the LinearLayout associated with this BottomSheet