다음을 통해 공유


View.SaveHierarchyState(SparseArray) Method

Definition

Store this view hierarchy's frozen state into the given container.

[Android.Runtime.Register("saveHierarchyState", "(Landroid/util/SparseArray;)V", "GetSaveHierarchyState_Landroid_util_SparseArray_Handler")]
public virtual void SaveHierarchyState (Android.Util.SparseArray? container);
[<Android.Runtime.Register("saveHierarchyState", "(Landroid/util/SparseArray;)V", "GetSaveHierarchyState_Landroid_util_SparseArray_Handler")>]
abstract member SaveHierarchyState : Android.Util.SparseArray -> unit
override this.SaveHierarchyState : Android.Util.SparseArray -> unit

Parameters

container
SparseArray

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

Attributes

Remarks

Store this view hierarchy's frozen state into the given container.

Java documentation for android.view.View.saveHierarchyState(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