Läs på engelska

Dela via


View.DispatchRestoreInstanceState(SparseArray) Method

Definition

Called by #restoreHierarchyState(android.util.SparseArray) to retrieve the state for this view and its children.

C#
[Android.Runtime.Register("dispatchRestoreInstanceState", "(Landroid/util/SparseArray;)V", "GetDispatchRestoreInstanceState_Landroid_util_SparseArray_Handler")]
protected virtual void DispatchRestoreInstanceState (Android.Util.SparseArray? container);

Parameters

container
SparseArray

The SparseArray which holds previously saved state.

Attributes

Remarks

Called by #restoreHierarchyState(android.util.SparseArray) to retrieve the state for this view and its children. May be overridden to modify how restoring happens to a view's children; for example, some views may want to not store state for their children.

Java documentation for android.view.View.dispatchRestoreInstanceState(android.util.SparseArray<android.os.Parcelable>).

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.

Applies to

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35