Udostępnij za pośrednictwem


View.DispatchRestoreInstanceState(SparseArray) Method

Definition

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

[Android.Runtime.Register("dispatchRestoreInstanceState", "(Landroid/util/SparseArray;)V", "GetDispatchRestoreInstanceState_Landroid_util_SparseArray_Handler")]
protected virtual void DispatchRestoreInstanceState (Android.Util.SparseArray? container);
[<Android.Runtime.Register("dispatchRestoreInstanceState", "(Landroid/util/SparseArray;)V", "GetDispatchRestoreInstanceState_Landroid_util_SparseArray_Handler")>]
abstract member DispatchRestoreInstanceState : Android.Util.SparseArray -> unit
override this.DispatchRestoreInstanceState : Android.Util.SparseArray -> unit

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