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.
This class was deprecated in API level 28.
[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
This class was deprecated in API level 28. Use the Support Library FragmentController
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.
Android reference 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
| Name | Description |
|---|---|
| FragmentController(IntPtr, JniHandleOwnership) |
Initializes a managed representation of an existing Java Native Interface object. |
Properties
| Name | Description |
|---|---|
| Class |
Returns the runtime class of this |
| FragmentManager |
Returns a FragmentManager for this controller. |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniManagedPeerState | (Inherited from JavaObject) |
| JniPeerMembers |
Provides JNI binding infrastructure for Android.App.FragmentController. |
| LoaderManager |
Returns a LoaderManager. |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| ThresholdClass |
Provides JNI binding infrastructure for Android.App.FragmentController. |
| ThresholdType |
Provides JNI binding infrastructure for Android.App.FragmentController. |
Methods
| Name | Description |
|---|---|
| AttachHost(Fragment) |
Attaches the host to the FragmentManager for this controller. |
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| Construct(JniObjectReference, JniObjectReferenceOptions) | (Inherited from JavaObject) |
| CreateController(FragmentHostCallback) |
Returns a FragmentController. |
| 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) |
This method was deprecated in API level 26. |
| 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) |
This method was deprecated in API level 26. |
| 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() |
Releases the resources held by this Java peer. (Inherited from Object) |
| Dispose(Boolean) |
Releases the resources held by this Java peer. (Inherited from Object) |
| DisposeUnlessReferenced() | (Inherited from JavaObject) |
| 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) | (Inherited from JavaObject) |
| 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>) |
This method was deprecated in API level 24. |
| 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() |
This method was deprecated in API level 24. |
| SaveAllState() |
Saves the state for all Fragments. |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) | (Inherited from JavaObject) |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (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
| Name | Description |
|---|---|
| IJavaPeerable.Disposed() | (Inherited from JavaObject) |
| IJavaPeerable.Finalized() | (Inherited from JavaObject) |
| IJavaPeerable.JniObjectReferenceControlBlock | (Inherited from JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from JavaObject) |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) | |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |