Unit |
Print the Fragments's state into the given stream.
|
Boolean |
Subclasses can not override equals().
|
FragmentActivity? |
Return the FragmentActivity this fragment is currently associated with.
|
Boolean |
Returns whether the the exit transition and enter transition overlap or not.
|
Boolean |
Returns whether the the return transition and reenter transition overlap or not.
|
Bundle? |
Return the arguments supplied when the fragment was instantiated, if any.
|
FragmentManager |
Return a private FragmentManager for placing and managing Fragments inside of this Fragment.
|
Context? |
Return the Context this fragment is currently associated with.
|
CreationExtras |
The Fragment's arguments when this is first called will be used as the defaults to any androidx.lifecycle.SavedStateHandle passed to a view model created using this extra.
|
ViewModelProvider.Factory |
|
Any? |
Returns the Transition that will be used to move Views into the initial scene.
|
Any? |
Returns the Transition that will be used to move Views out of the scene when the fragment is removed, hidden, or detached when not popping the back stack.
|
FragmentManager? |
This function is deprecated.
This has been removed in favor of getParentFragmentManager() which throws an IllegalStateException if the FragmentManager is null.
|
Any? |
Return the host object of this fragment.
|
Int |
Return the identifier this fragment is known by.
|
LayoutInflater |
Returns the cached LayoutInflater used to inflate Views of this Fragment.
|
Lifecycle |
Overriding this method is no longer supported and this method will be made final in a future version of Fragment.
|
LoaderManager |
This function is deprecated.
Use LoaderManager.getInstance(this).
|
Fragment? |
Returns the parent Fragment containing this Fragment.
|
FragmentManager |
Return the FragmentManager for interacting with fragments associated with this fragment's activity.
|
Any? |
Returns the Transition that will be used to move Views in to the scene when returning due to popping a back stack.
|
Resources |
Return requireActivity().getResources().
|
Boolean |
This function is deprecated.
Instead of retaining the Fragment itself, use a non-retained Fragment and keep retained state in a ViewModel attached to that Fragment.
|
Any? |
Returns the Transition that will be used to move Views out of the scene when the Fragment is preparing to be removed, hidden, or detached because of popping the back stack.
|
SavedStateRegistry |
|
Any? |
Returns the Transition that will be used for shared elements transferred into the content Scene.
|
Any? |
Return the Transition that will be used for shared elements transferred back during a pop of the back stack.
|
String |
Return a localized string from the application's package's default string table.
|
String |
Return a localized formatted string from the application's package's default string table, substituting the format arguments as defined in java.util.Formatter and format.
|
String? |
Get the tag name of the fragment, if specified.
|
Fragment? |
This function is deprecated.
Instead of using a target fragment to pass results, use setFragmentResult to deliver results to FragmentResultListener instances registered by other fragments via setFragmentResultListener.
|
Int |
This function is deprecated.
When using the target fragment replacement of setFragmentResultListener and setFragmentResult, consider using setArguments to pass a requestKey if you need to support dynamic request keys.
|
CharSequence |
Return a localized, styled CharSequence from the application's package's default string table.
|
Boolean |
This function is deprecated.
Use setMaxLifecycle instead.
|
View? |
Get the root view for the fragment's layout (the one returned by onCreateView), if provided.
|
LifecycleOwner |
Get a LifecycleOwner that represents the Fragment's View lifecycle.
|
LiveData<LifecycleOwner!> |
Retrieve a LiveData which allows you to observe the lifecycle of the Fragment's View.
|
ViewModelStore |
Returns the ViewModelStore associated with this Fragment
|
Int |
Subclasses can not override hashCode().
|
java-static Fragment |
This function is deprecated.
Use getFragmentFactory and instantiate
|
java-static Fragment |
This function is deprecated.
Use getFragmentFactory and instantiate, manually calling setArguments on the returned Fragment.
|
Boolean |
Return true if the fragment is currently added to its activity.
|
Boolean |
Return true if the fragment has been explicitly detached from the UI.
|
Boolean |
Return true if the fragment has been hidden.
|
Boolean |
Return true if the layout is included as part of an activity view hierarchy via the tag.
|
Boolean |
Return true if this fragment is currently being removed from its activity.
|
Boolean |
Return true if the fragment is in the resumed state.
|
Boolean |
Returns true if this fragment is added and its state has already been saved by its host.
|
Boolean |
Return true if the fragment is currently visible to the user.
|
Unit |
This function is deprecated.
use onViewCreated for code touching the view created by onCreateView and onCreate for other initialization.
|
Unit |
This function is deprecated.
This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an ActivityResultContract and the prebuilt contracts for common intents available in androidx.activity.result.contract.ActivityResultContracts, provides hooks for testing, and allow receiving results in separate, testable classes independent from your fragment.
|
Unit |
This function is deprecated.
See onAttach.
|
Unit |
Called when a fragment is first attached to its context.
|
Unit |
This function is deprecated.
The responsibility for listening for fragments being attached has been moved to FragmentManager.
|
Unit |
|
Boolean |
This hook is called whenever an item in a context menu is selected.
|
Unit |
Called to do initial creation of a fragment.
|
Animation? |
Called when a fragment loads an animation.
|
Animator? |
Called when a fragment loads an animator.
|
Unit |
Called when a context menu for the view is about to be shown.
|
Unit |
This function is deprecated.
androidx.activity.ComponentActivity now implements MenuHost, an interface that allows any component, including your activity itself, to add menu items by calling addMenuProvider without forcing all components through this single method override.
|
Unit |
Called when the fragment is no longer in use.
|
Unit |
This function is deprecated.
androidx.activity.ComponentActivity now implements MenuHost, an interface that allows any component, including your activity itself, to add menu items by calling addMenuProvider without forcing all components through this single method override.
|
Unit |
Called when the fragment is no longer attached to its activity.
|
LayoutInflater |
Returns the LayoutInflater used to inflate Views of this Fragment.
|
Unit |
Called when the hidden state (as returned by isHidden of the fragment or another fragment in its hierarchy has changed.
|
Unit |
This function is deprecated.
See onInflate.
|
Unit |
Called when a fragment is being created as part of a view layout inflation, typically from setting the content view of an activity.
|
Unit |
This function is deprecated.
|
Unit |
Called when the Fragment's activity changes from fullscreen mode to multi-window mode and visa-versa.
|
Boolean |
This function is deprecated.
androidx.activity.ComponentActivity now implements MenuHost, an interface that allows any component, including your activity itself, to add menu items by calling addMenuProvider without forcing all components through this single method override.
|
Unit |
This function is deprecated.
androidx.activity.ComponentActivity now implements MenuHost, an interface that allows any component, including your activity itself, to add menu items by calling addMenuProvider without forcing all components through this single method override.
|
Unit |
Called by the system when the activity changes to and from picture-in-picture mode.
|
Unit |
This function is deprecated.
androidx.activity.ComponentActivity now implements MenuHost, an interface that allows any component, including your activity itself, to add menu items by calling addMenuProvider without forcing all components through this single method override.
|
Unit |
Callback for when the primary navigation state of this Fragment has changed.
|
Unit |
This function is deprecated.
This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an ActivityResultContract and the prebuilt contracts for common intents available in androidx.activity.result.contract.ActivityResultContracts, provides hooks for testing, and allow receiving results in separate, testable classes independent from your fragment.
|
Unit |
Called when the Fragment is no longer started.
|
Unit |
Called when all saved state has been restored into the view hierarchy of the fragment.
|
Unit |
Postpone the entering Fragment transition until startPostponedEnterTransition or executePendingTransactions has been called.
|
Unit |
Postpone the entering Fragment transition for a given amount of time and then call startPostponedEnterTransition.
|
ActivityResultLauncher<I!> |
Register a request to start an activity for result, designated by the given contract.
|
ActivityResultLauncher<I!> |
Register a request to start an activity for result, designated by the given contract.
|
Unit |
Registers a context menu to be shown for the given view (multiple views can show the context menu).
|
Unit |
This function is deprecated.
This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an ActivityResultContract and the prebuilt contracts for common intents available in androidx.activity.result.contract.ActivityResultContracts, provides hooks for testing, and allow receiving results in separate, testable classes independent from your fragment.
|
FragmentActivity |
Return the FragmentActivity this fragment is currently associated with.
|
Bundle |
Return the arguments supplied when the fragment was instantiated.
|
Context |
Return the Context this fragment is currently associated with.
|
FragmentManager |
This function is deprecated.
This has been renamed to getParentFragmentManager() to make it clear that you are accessing the FragmentManager that contains this Fragment and not the FragmentManager associated with child Fragments.
|
Any |
Return the host object of this fragment.
|
Fragment |
Returns the parent Fragment containing this Fragment.
|
View |
Get the root view for the fragment's layout (the one returned by onCreateView).
|
Unit |
Sets whether the the exit transition and enter transition overlap or not.
|
Unit |
Sets whether the the return transition and reenter transition overlap or not.
|
Unit |
Supply the construction arguments for this fragment.
|
Unit |
When custom transitions are used with Fragments, the enter transition callback is called when this Fragment is attached or detached when not popping the back stack.
|
Unit |
Sets the Transition that will be used to move Views into the initial scene.
|
Unit |
When custom transitions are used with Fragments, the exit transition callback is called when this Fragment is attached or detached when popping the back stack.
|
Unit |
Sets the Transition that will be used to move Views out of the scene when the fragment is removed, hidden, or detached when not popping the back stack.
|
Unit |
This function is deprecated.
This method is no longer needed when using a MenuProvider to provide a Menu to your activity, which replaces onCreateOptionsMenu as the recommended way to provide a consistent, optionally Lifecycle-aware, and modular way to handle menu creation and item selection.
|
Unit |
Set the initial saved state that this Fragment should restore itself from when first being constructed, as returned by FragmentManager.saveFragmentInstanceState.
|
Unit |
Set a hint for whether this fragment's menu should be visible.
|
Unit |
Sets the Transition that will be used to move Views in to the scene when returning due to popping a back stack.
|
Unit |
This function is deprecated.
Instead of retaining the Fragment itself, use a non-retained Fragment and keep retained state in a ViewModel attached to that Fragment.
|
Unit |
Sets the Transition that will be used to move Views out of the scene when the Fragment is preparing to be removed, hidden, or detached because of popping the back stack.
|
Unit |
Sets the Transition that will be used for shared elements transferred into the content Scene.
|
Unit |
Sets the Transition that will be used for shared elements transferred back during a pop of the back stack.
|
Unit |
This function is deprecated.
Instead of using a target fragment to pass results, the fragment requesting a result should use setFragmentResultListener to register a FragmentResultListener with a
requestKey using its parent fragment manager.
|
Unit |
This function is deprecated.
If you are manually calling this method, use setMaxLifecycle instead.
|
Boolean |
Gets whether you should show UI with rationale before requesting a permission.
|
Unit |
Call startActivity from the fragment's containing Activity.
|
Unit |
Call startActivity from the fragment's containing Activity.
|
Unit |
This function is deprecated.
This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an ActivityResultContract and the prebuilt contracts for common intents available in androidx.activity.result.contract.ActivityResultContracts, provides hooks for testing, and allow receiving results in separate, testable classes independent from your fragment.
|
Unit |
This function is deprecated.
This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an ActivityResultContract and the prebuilt contracts for common intents available in androidx.activity.result.contract.ActivityResultContracts, provides hooks for testing, and allow receiving results in separate, testable classes independent from your fragment.
|
Unit |
This function is deprecated.
This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an ActivityResultContract and the prebuilt contracts for common intents available in androidx.activity.result.contract.ActivityResultContracts, provides hooks for testing, and allow receiving results in separate, testable classes independent from your fragment.
|
Unit |
Begin postponed transitions after postponeEnterTransition was called.
|
String |
|
Unit |
Prevents a context menu to be shown for the given view.
|