FragmentController Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides integration points with a FragmentManager
for a fragment host.
[Android.Runtime.Register("android/app/FragmentController", ApiSince=23, DoNotGenerateAcw=true)]
public class FragmentController : Java.Lang.Object
[<Android.Runtime.Register("android/app/FragmentController", ApiSince=23, DoNotGenerateAcw=true)>]
type FragmentController = class
inherit Object
- Inheritance
- Attributes
Remarks
Provides integration points with a FragmentManager
for a fragment host.
It is the responsibility of the host to take care of the Fragment's lifecycle. The methods provided by FragmentController
are for that purpose.
This member is deprecated. Use the Support Libraryandroidx.fragment.app.FragmentController
Java documentation for android.app.FragmentController
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
FragmentController(IntPtr, JniHandleOwnership) |
Properties
Class |
Returns the runtime class of this |
FragmentManager |
Returns a |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
LoaderManager |
Returns a |
PeerReference | (Inherited from Object) |
ThresholdClass | |
ThresholdType |
Methods
AttachHost(Fragment) |
Attaches the host to the FragmentManager for this controller. |
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
CreateController(FragmentHostCallback) |
Returns a |
DispatchActivityCreated() |
Moves all Fragments managed by the controller's FragmentManager into the activity created state. |
DispatchConfigurationChanged(Configuration) |
Lets all Fragments managed by the controller's FragmentManager know a configuration change occurred. |
DispatchContextItemSelected(IMenuItem) |
Sends a context item selection event to the Fragments managed by the controller's FragmentManager. |
DispatchCreate() |
Moves all Fragments managed by the controller's FragmentManager into the create state. |
DispatchCreateOptionsMenu(IMenu, MenuInflater) |
Lets all Fragments managed by the controller's FragmentManager know they should create an options menu. |
DispatchDestroy() |
Moves all Fragments managed by the controller's FragmentManager into the destroy state. |
DispatchDestroyView() |
Moves all Fragments managed by the controller's FragmentManager into the destroy view state. |
DispatchLowMemory() |
Lets all Fragments managed by the controller's FragmentManager know the device is in a low memory condition. |
DispatchMultiWindowModeChanged(Boolean, Configuration) |
Lets all Fragments managed by the controller's FragmentManager know the multi-window mode of the activity changed. |
DispatchMultiWindowModeChanged(Boolean) |
Lets all Fragments managed by the controller's FragmentManager know the multi-window mode of the activity changed. |
DispatchOptionsItemSelected(IMenuItem) |
Sends an option item selection event to the Fragments managed by the controller's FragmentManager. |
DispatchOptionsMenuClosed(IMenu) |
Lets all Fragments managed by the controller's FragmentManager know their options menu has closed. |
DispatchPause() |
Moves all Fragments managed by the controller's FragmentManager into the pause state. |
DispatchPictureInPictureModeChanged(Boolean, Configuration) |
Lets all Fragments managed by the controller's FragmentManager know the picture-in-picture mode of the activity changed. |
DispatchPictureInPictureModeChanged(Boolean) |
Lets all Fragments managed by the controller's FragmentManager know the picture-in-picture mode of the activity changed. |
DispatchPrepareOptionsMenu(IMenu) |
Lets all Fragments managed by the controller's FragmentManager know they should prepare their options menu for display. |
DispatchResume() |
Moves all Fragments managed by the controller's FragmentManager into the resume state. |
DispatchStart() |
Moves all Fragments managed by the controller's FragmentManager into the start state. |
DispatchStop() |
Moves all Fragments managed by the controller's FragmentManager into the stop state. |
DispatchTrimMemory(Int32) |
Lets all Fragments managed by the controller's FragmentManager know they should trim their memory usage. |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
DoLoaderDestroy() |
Destroys the loaders and, if their state is not being retained, removes them. |
DoLoaderStart() |
Starts the loaders. |
DoLoaderStop(Boolean) |
Stops the loaders, optionally retaining their state. |
DumpLoaders(String, FileDescriptor, PrintWriter, String[]) |
Dumps the current state of the loaders. |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
ExecPendingActions() |
Execute any pending actions for the Fragments managed by the controller's FragmentManager. |
FindFragmentByWho(String) |
Returns a fragment with the given identifier. |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
NoteStateNotSaved() |
Marks the fragment state as unsaved. |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
OnCreateView(View, String, Context, IAttributeSet) |
Instantiates a Fragment's view. |
ReportLoaderStart() |
Lets the loaders know the host is ready to receive notifications. |
RestoreAllState(IParcelable, FragmentManagerNonConfig) |
Restores the saved state for all Fragments. |
RestoreAllState(IParcelable, IList<Fragment>) |
Restores the saved state for all Fragments. |
RestoreLoaderNonConfig(ArrayMap) |
Restores the saved state for all LoaderManagers. |
RetainLoaderNonConfig() |
Returns a list of LoaderManagers that have opted to retain their instance across configuration changes. |
RetainNestedNonConfig() |
Returns a nested tree of Fragments that have opted to retain their instance across configuration changes. |
RetainNonConfig() |
Returns a list of Fragments that have opted to retain their instance across configuration changes. |
SaveAllState() |
Saves the state for all Fragments. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |