Udostępnij za pośrednictwem


View.DispatchSaveInstanceState(SparseArray) Method

Definition

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

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

Parameters

container
SparseArray

The SparseArray in which to save the view's state.

Attributes

Remarks

Called by #saveHierarchyState(android.util.SparseArray) to store the state for this view and its children. May be overridden to modify how freezing 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.dispatchSaveInstanceState(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