FeedbackBottomSheet

open class FeedbackBottomSheet : BottomSheetDialogFragment, Animator.AnimatorListener

A BottomSheetDialogFragment shows Feedback UI with different feedback categories.

This view takes a FeedbackBottomSheetListener. The onFeedbackSelected will be called when a feedback category is selected. The onFeedbackDismissed will be called when this fragment dismiss.

Types

FeedbackFlowType
Link copied to clipboard
annotation class FeedbackFlowType

Functions

callStartTransitionListener
Link copied to clipboard
open fun callStartTransitionListener()
dismiss
Link copied to clipboard
open fun dismiss()
dismissAfterAnimation
Link copied to clipboard
open fun dismissAfterAnimation()
dismissAllowingStateLoss
Link copied to clipboard
open fun dismissAllowingStateLoss()
dismissInternal
Link copied to clipboard
open fun dismissInternal(allowStateLoss: Boolean, fromOnDismiss: Boolean)
dismissWithAnimation
Link copied to clipboard
open fun dismissWithAnimation(behavior: BottomSheetBehavior<out Any>, allowingStateLoss: Boolean)
dump
Link copied to clipboard
open fun dump(prefix: String, fd: FileDescriptor, writer: PrintWriter, args: Array<String>)
ensureAnimationInfo
Link copied to clipboard
open fun ensureAnimationInfo(): Fragment.AnimationInfo
equals
Link copied to clipboard
fun equals(o: Any): Boolean
findFragmentByWho
Link copied to clipboard
open fun findFragmentByWho(who: String): Fragment
getActivity
Link copied to clipboard
fun getActivity(): FragmentActivity
getAllowEnterTransitionOverlap
Link copied to clipboard
open fun getAllowEnterTransitionOverlap(): Boolean
getAllowReturnTransitionOverlap
Link copied to clipboard
open fun getAllowReturnTransitionOverlap(): Boolean
getAnimatingAway
Link copied to clipboard
open fun getAnimatingAway(): View
getAnimator
Link copied to clipboard
open fun getAnimator(): Animator
getArguments
Link copied to clipboard
fun getArguments(): Bundle
getChildFragmentManager
Link copied to clipboard
fun getChildFragmentManager(): FragmentManager
getContext
Link copied to clipboard
open fun getContext(): Context
getDefaultViewModelProviderFactory
Link copied to clipboard
open fun getDefaultViewModelProviderFactory(): ViewModelProvider.Factory
getDialog
Link copied to clipboard
open fun getDialog(): Dialog
getEnterTransition
Link copied to clipboard
open fun getEnterTransition(): Any
getEnterTransitionCallback
Link copied to clipboard
open fun getEnterTransitionCallback(): SharedElementCallback
getExitTransition
Link copied to clipboard
open fun getExitTransition(): Any
getExitTransitionCallback
Link copied to clipboard
open fun getExitTransitionCallback(): SharedElementCallback
getFragmentManager
Link copied to clipboard
fun getFragmentManager(): FragmentManager
getHost
Link copied to clipboard
fun getHost(): Any
getId
Link copied to clipboard
fun getId(): Int
getLayoutInflater
Link copied to clipboard
fun getLayoutInflater(): LayoutInflater
getLifecycle
Link copied to clipboard
open fun getLifecycle(): Lifecycle
getLoaderManager
Link copied to clipboard
open fun getLoaderManager(): LoaderManager
getNextAnim
Link copied to clipboard
open fun getNextAnim(): Int
getNextTransition
Link copied to clipboard
open fun getNextTransition(): Int
getParentFragment
Link copied to clipboard
fun getParentFragment(): Fragment
getParentFragmentManager
Link copied to clipboard
fun getParentFragmentManager(): FragmentManager
getReenterTransition
Link copied to clipboard
open fun getReenterTransition(): Any
getResources
Link copied to clipboard
fun getResources(): Resources
getRetainInstance
Link copied to clipboard
fun getRetainInstance(): Boolean
getReturnTransition
Link copied to clipboard
open fun getReturnTransition(): Any
getSavedStateRegistry
Link copied to clipboard
fun getSavedStateRegistry(): SavedStateRegistry
getSharedElementEnterTransition
Link copied to clipboard
open fun getSharedElementEnterTransition(): Any
getSharedElementReturnTransition
Link copied to clipboard
open fun getSharedElementReturnTransition(): Any
getShowsDialog
Link copied to clipboard
open fun getShowsDialog(): Boolean
getStateAfterAnimating
Link copied to clipboard
open fun getStateAfterAnimating(): Int
getString
Link copied to clipboard
fun getString(resId: Int): String
getTag
Link copied to clipboard
fun getTag(): String
getTargetFragment
Link copied to clipboard
fun getTargetFragment(): Fragment
getTargetRequestCode
Link copied to clipboard
fun getTargetRequestCode(): Int
getText
Link copied to clipboard
fun getText(resId: Int): CharSequence
getTheme
Link copied to clipboard
open fun getTheme(): Int
getUserVisibleHint
Link copied to clipboard
open fun getUserVisibleHint(): Boolean
getView
Link copied to clipboard
open fun getView(): View
getViewLifecycleOwner
Link copied to clipboard
open fun getViewLifecycleOwner(): LifecycleOwner
getViewLifecycleOwnerLiveData
Link copied to clipboard
open fun getViewLifecycleOwnerLiveData(): LiveData<LifecycleOwner>
getViewModelStore
Link copied to clipboard
open fun getViewModelStore(): ViewModelStore
hashCode
Link copied to clipboard
fun hashCode(): Int
hasOptionsMenu
Link copied to clipboard
fun hasOptionsMenu(): Boolean
initLifecycle
Link copied to clipboard
open fun initLifecycle()
initState
Link copied to clipboard
open fun initState()
instantiate
Link copied to clipboard
open fun instantiate(context: Context, fname: String): Fragment
isAdded
Link copied to clipboard
fun isAdded(): Boolean
isCancelable
Link copied to clipboard
open fun isCancelable(): Boolean
isDetached
Link copied to clipboard
fun isDetached(): Boolean
isHidden
Link copied to clipboard
fun isHidden(): Boolean
isHideReplaced
Link copied to clipboard
open fun isHideReplaced(): Boolean
isInBackStack
Link copied to clipboard
fun isInBackStack(): Boolean
isInLayout
Link copied to clipboard
fun isInLayout(): Boolean
isMenuVisible
Link copied to clipboard
fun isMenuVisible(): Boolean
isPostponed
Link copied to clipboard
open fun isPostponed(): Boolean
isRemoving
Link copied to clipboard
fun isRemoving(): Boolean
isRemovingParent
Link copied to clipboard
fun isRemovingParent(): Boolean
isResumed
Link copied to clipboard
fun isResumed(): Boolean
isStateSaved
Link copied to clipboard
fun isStateSaved(): Boolean
isVisible
Link copied to clipboard
fun isVisible(): Boolean
newInstance
Link copied to clipboard
open fun newInstance(feedbackBottomSheetListener: FeedbackBottomSheetListener, duration: Long): FeedbackBottomSheet
open fun newInstance(feedbackBottomSheetListener: FeedbackBottomSheetListener, flowType: Int, duration: Long): FeedbackBottomSheet
noteStateNotSaved
Link copied to clipboard
open fun noteStateNotSaved()
onActivityCreated
Link copied to clipboard
open fun onActivityCreated(savedInstanceState: Bundle)
onActivityResult
Link copied to clipboard
open fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent)
onAnimationCancel
Link copied to clipboard
abstract fun onAnimationCancel(p: Animator)
open fun onAnimationCancel(animation: Animator)
onAnimationEnd
Link copied to clipboard
open fun onAnimationEnd(animation: Animator)
open fun onAnimationEnd(animation: Animator, isReverse: Boolean)
onAnimationRepeat
Link copied to clipboard
abstract fun onAnimationRepeat(p: Animator)
open fun onAnimationRepeat(animation: Animator)
onAnimationStart
Link copied to clipboard
open fun onAnimationStart(animation: Animator)
open fun onAnimationStart(animation: Animator, isReverse: Boolean)
onAttach
Link copied to clipboard
open fun onAttach(context: Context)
onAttachFragment
Link copied to clipboard
open fun onAttachFragment(childFragment: Fragment)
onCancel
Link copied to clipboard
open fun onCancel(dialog: DialogInterface)
onConfigurationChanged
Link copied to clipboard
open fun onConfigurationChanged(newConfig: Configuration)
onContextItemSelected
Link copied to clipboard
open fun onContextItemSelected(item: MenuItem): Boolean
onCreate
Link copied to clipboard
open fun onCreate(savedInstanceState: Bundle)
open fun onCreate(savedInstanceState: Bundle)
onCreateAnimation
Link copied to clipboard
open fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation
onCreateAnimator
Link copied to clipboard
open fun onCreateAnimator(transit: Int, enter: Boolean, nextAnim: Int): Animator
onCreateContextMenu
Link copied to clipboard
open fun onCreateContextMenu(menu: ContextMenu, v: View, menuInfo: ContextMenu.ContextMenuInfo)
onCreateDialog
Link copied to clipboard
open fun onCreateDialog(savedInstanceState: Bundle): Dialog
open fun onCreateDialog(savedInstanceState: Bundle): Dialog
onCreateOptionsMenu
Link copied to clipboard
open fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater)
onCreateView
Link copied to clipboard
open fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle): View
open fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle): View
onDestroy
Link copied to clipboard
open fun onDestroy()
onDestroyOptionsMenu
Link copied to clipboard
open fun onDestroyOptionsMenu()
onDestroyView
Link copied to clipboard
open fun onDestroyView()
open fun onDestroyView()
onDetach
Link copied to clipboard
open fun onDetach()
onDismiss
Link copied to clipboard
open fun onDismiss(dialog: DialogInterface)
open fun onDismiss(dialog: DialogInterface)
onGetLayoutInflater
Link copied to clipboard
open fun onGetLayoutInflater(savedInstanceState: Bundle): LayoutInflater
onHiddenChanged
Link copied to clipboard
open fun onHiddenChanged(hidden: Boolean)
onInflate
Link copied to clipboard
open fun onInflate(context: Context, attrs: AttributeSet, savedInstanceState: Bundle)
onLowMemory
Link copied to clipboard
open fun onLowMemory()
onMultiWindowModeChanged
Link copied to clipboard
open fun onMultiWindowModeChanged(isInMultiWindowMode: Boolean)
onOptionsItemSelected
Link copied to clipboard
open fun onOptionsItemSelected(item: MenuItem): Boolean
onOptionsMenuClosed
Link copied to clipboard
open fun onOptionsMenuClosed(menu: Menu)
onPause
Link copied to clipboard
open fun onPause()
onPictureInPictureModeChanged
Link copied to clipboard
open fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean)
onPrepareOptionsMenu
Link copied to clipboard
open fun onPrepareOptionsMenu(menu: Menu)
onPrimaryNavigationFragmentChanged
Link copied to clipboard
open fun onPrimaryNavigationFragmentChanged(isPrimaryNavigationFragment: Boolean)
onRequestPermissionsResult
Link copied to clipboard
open fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: Array<Int>)
onResume
Link copied to clipboard
open fun onResume()
open fun onResume()
onSaveInstanceState
Link copied to clipboard
open fun onSaveInstanceState(outState: Bundle)
open fun onSaveInstanceState(outState: Bundle)
onStart
Link copied to clipboard
open fun onStart()
onStop
Link copied to clipboard
open fun onStop()
onViewCreated
Link copied to clipboard
open fun onViewCreated(view: View, savedInstanceState: Bundle)
open fun onViewCreated(view: View, savedInstanceState: Bundle)
onViewStateRestored
Link copied to clipboard
open fun onViewStateRestored(savedInstanceState: Bundle)
performActivityCreated
Link copied to clipboard
open fun performActivityCreated(savedInstanceState: Bundle)
performAttach
Link copied to clipboard
open fun performAttach()
performConfigurationChanged
Link copied to clipboard
open fun performConfigurationChanged(newConfig: Configuration)
performContextItemSelected
Link copied to clipboard
open fun performContextItemSelected(item: MenuItem): Boolean
performCreate
Link copied to clipboard
open fun performCreate(savedInstanceState: Bundle)
performCreateOptionsMenu
Link copied to clipboard
open fun performCreateOptionsMenu(menu: Menu, inflater: MenuInflater): Boolean
performCreateView
Link copied to clipboard
open fun performCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle)
performDestroy
Link copied to clipboard
open fun performDestroy()
performDestroyView
Link copied to clipboard
open fun performDestroyView()
performDetach
Link copied to clipboard
open fun performDetach()
performGetLayoutInflater
Link copied to clipboard
open fun performGetLayoutInflater(savedInstanceState: Bundle): LayoutInflater
performLowMemory
Link copied to clipboard
open fun performLowMemory()
performMultiWindowModeChanged
Link copied to clipboard
open fun performMultiWindowModeChanged(isInMultiWindowMode: Boolean)
performOptionsItemSelected
Link copied to clipboard
open fun performOptionsItemSelected(item: MenuItem): Boolean
performOptionsMenuClosed
Link copied to clipboard
open fun performOptionsMenuClosed(menu: Menu)
performPause
Link copied to clipboard
open fun performPause()
performPictureInPictureModeChanged
Link copied to clipboard
open fun performPictureInPictureModeChanged(isInPictureInPictureMode: Boolean)
performPrepareOptionsMenu
Link copied to clipboard
open fun performPrepareOptionsMenu(menu: Menu): Boolean
performPrimaryNavigationFragmentChanged
Link copied to clipboard
open fun performPrimaryNavigationFragmentChanged()
performResume
Link copied to clipboard
open fun performResume()
performSaveInstanceState
Link copied to clipboard
open fun performSaveInstanceState(outState: Bundle)
performStart
Link copied to clipboard
open fun performStart()
performStop
Link copied to clipboard
open fun performStop()
postponeEnterTransition
Link copied to clipboard
open fun postponeEnterTransition()
registerForContextMenu
Link copied to clipboard
open fun registerForContextMenu(view: View)
requestPermissions
Link copied to clipboard
fun requestPermissions(permissions: Array<String>, requestCode: Int)
requireActivity
Link copied to clipboard
fun requireActivity(): FragmentActivity
requireArguments
Link copied to clipboard
fun requireArguments(): Bundle
requireContext
Link copied to clipboard
fun requireContext(): Context
requireDialog
Link copied to clipboard
fun requireDialog(): Dialog
requireFragmentManager
Link copied to clipboard
fun requireFragmentManager(): FragmentManager
requireHost
Link copied to clipboard
fun requireHost(): Any
requireParentFragment
Link copied to clipboard
fun requireParentFragment(): Fragment
requireView
Link copied to clipboard
fun requireView(): View
restoreChildFragmentState
Link copied to clipboard
open fun restoreChildFragmentState(savedInstanceState: Bundle)
restoreViewState
Link copied to clipboard
fun restoreViewState(savedInstanceState: Bundle)
setAllowEnterTransitionOverlap
Link copied to clipboard
open fun setAllowEnterTransitionOverlap(allow: Boolean)
setAllowReturnTransitionOverlap
Link copied to clipboard
open fun setAllowReturnTransitionOverlap(allow: Boolean)
setAnimatingAway
Link copied to clipboard
open fun setAnimatingAway(view: View)
setAnimator
Link copied to clipboard
open fun setAnimator(animator: Animator)
setArguments
Link copied to clipboard
open fun setArguments(args: Bundle)
setCancelable
Link copied to clipboard
open fun setCancelable(cancelable: Boolean)
setEnterSharedElementCallback
Link copied to clipboard
open fun setEnterSharedElementCallback(callback: SharedElementCallback)
setEnterTransition
Link copied to clipboard
open fun setEnterTransition(transition: Any)
setExitSharedElementCallback
Link copied to clipboard
open fun setExitSharedElementCallback(callback: SharedElementCallback)
setExitTransition
Link copied to clipboard
open fun setExitTransition(transition: Any)
setHasOptionsMenu
Link copied to clipboard
open fun setHasOptionsMenu(hasMenu: Boolean)
setHideReplaced
Link copied to clipboard
open fun setHideReplaced(replaced: Boolean)
setInitialSavedState
Link copied to clipboard
open fun setInitialSavedState(state: Fragment.SavedState)
setMenuVisibility
Link copied to clipboard
open fun setMenuVisibility(menuVisible: Boolean)
setNextAnim
Link copied to clipboard
open fun setNextAnim(animResourceId: Int)
setNextTransition
Link copied to clipboard
open fun setNextTransition(nextTransition: Int)
setOnStartEnterTransitionListener
Link copied to clipboard
open fun setOnStartEnterTransitionListener(listener: Fragment.OnStartEnterTransitionListener)
setReenterTransition
Link copied to clipboard
open fun setReenterTransition(transition: Any)
setRetainInstance
Link copied to clipboard
open fun setRetainInstance(retain: Boolean)
setReturnTransition
Link copied to clipboard
open fun setReturnTransition(transition: Any)
setSharedElementEnterTransition
Link copied to clipboard
open fun setSharedElementEnterTransition(transition: Any)
setSharedElementReturnTransition
Link copied to clipboard
open fun setSharedElementReturnTransition(transition: Any)
setShowsDialog
Link copied to clipboard
open fun setShowsDialog(showsDialog: Boolean)
setStateAfterAnimating
Link copied to clipboard
open fun setStateAfterAnimating(state: Int)
setStyle
Link copied to clipboard
open fun setStyle(style: Int, theme: Int)
setTargetFragment
Link copied to clipboard
open fun setTargetFragment(fragment: Fragment, requestCode: Int)
setupDialog
Link copied to clipboard
open fun setupDialog(dialog: Dialog, style: Int)
setUserVisibleHint
Link copied to clipboard
open fun setUserVisibleHint(isVisibleToUser: Boolean)
shouldShowRequestPermissionRationale
Link copied to clipboard
open fun shouldShowRequestPermissionRationale(permission: String): Boolean
show
Link copied to clipboard
open fun show(manager: FragmentManager, tag: String)
open fun show(transaction: FragmentTransaction, tag: String): Int
showNow
Link copied to clipboard
open fun showNow(manager: FragmentManager, tag: String)
startActivity
Link copied to clipboard
open fun startActivity(intent: Intent)
startActivityForResult
Link copied to clipboard
open fun startActivityForResult(intent: Intent, requestCode: Int)
startIntentSenderForResult
Link copied to clipboard
open fun startIntentSenderForResult(intent: IntentSender, requestCode: Int, fillInIntent: Intent, flagsMask: Int, flagsValues: Int, extraFlags: Int, options: Bundle)
startPostponedEnterTransition
Link copied to clipboard
open fun startPostponedEnterTransition()
toString
Link copied to clipboard
open fun toString(): String
tryDismissWithAnimation
Link copied to clipboard
open fun tryDismissWithAnimation(allowingStateLoss: Boolean): Boolean
unregisterForContextMenu
Link copied to clipboard
open fun unregisterForContextMenu(view: View)

Properties

duration
Link copied to clipboard
private open var duration: Long
FEEDBACK_DETAIL_FLOW
Link copied to clipboard
val FEEDBACK_DETAIL_FLOW: Int
FEEDBACK_MAIN_FLOW
Link copied to clipboard
val FEEDBACK_MAIN_FLOW: Int
feedbackBottomSheetListener
Link copied to clipboard
private open var feedbackBottomSheetListener: FeedbackBottomSheetListener
TAG
Link copied to clipboard
val TAG: String