다음을 통해 공유


Instrumentation.CallActivityOnSaveInstanceState Method

Definition

Overloads

CallActivityOnSaveInstanceState(Activity, Bundle)

Perform calling of an activity's Activity#onSaveInstanceState method.

CallActivityOnSaveInstanceState(Activity, Bundle, PersistableBundle)

Perform calling of an activity's Activity#onSaveInstanceState method.

CallActivityOnSaveInstanceState(Activity, Bundle)

Perform calling of an activity's Activity#onSaveInstanceState method.

[Android.Runtime.Register("callActivityOnSaveInstanceState", "(Landroid/app/Activity;Landroid/os/Bundle;)V", "GetCallActivityOnSaveInstanceState_Landroid_app_Activity_Landroid_os_Bundle_Handler")]
public virtual void CallActivityOnSaveInstanceState (Android.App.Activity activity, Android.OS.Bundle outState);
[<Android.Runtime.Register("callActivityOnSaveInstanceState", "(Landroid/app/Activity;Landroid/os/Bundle;)V", "GetCallActivityOnSaveInstanceState_Landroid_app_Activity_Landroid_os_Bundle_Handler")>]
abstract member CallActivityOnSaveInstanceState : Android.App.Activity * Android.OS.Bundle -> unit
override this.CallActivityOnSaveInstanceState : Android.App.Activity * Android.OS.Bundle -> unit

Parameters

activity
Activity

The activity being saved.

outState
Bundle

The bundle to pass to the call.

Attributes

Remarks

Perform calling of an activity's Activity#onSaveInstanceState method. The default implementation simply calls through to that method.

Java documentation for android.app.Instrumentation.callActivityOnSaveInstanceState(android.app.Activity, android.os.Bundle).

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

CallActivityOnSaveInstanceState(Activity, Bundle, PersistableBundle)

Perform calling of an activity's Activity#onSaveInstanceState method.

[Android.Runtime.Register("callActivityOnSaveInstanceState", "(Landroid/app/Activity;Landroid/os/Bundle;Landroid/os/PersistableBundle;)V", "GetCallActivityOnSaveInstanceState_Landroid_app_Activity_Landroid_os_Bundle_Landroid_os_PersistableBundle_Handler")]
public virtual void CallActivityOnSaveInstanceState (Android.App.Activity activity, Android.OS.Bundle outState, Android.OS.PersistableBundle outPersistentState);
[<Android.Runtime.Register("callActivityOnSaveInstanceState", "(Landroid/app/Activity;Landroid/os/Bundle;Landroid/os/PersistableBundle;)V", "GetCallActivityOnSaveInstanceState_Landroid_app_Activity_Landroid_os_Bundle_Landroid_os_PersistableBundle_Handler")>]
abstract member CallActivityOnSaveInstanceState : Android.App.Activity * Android.OS.Bundle * Android.OS.PersistableBundle -> unit
override this.CallActivityOnSaveInstanceState : Android.App.Activity * Android.OS.Bundle * Android.OS.PersistableBundle -> unit

Parameters

activity
Activity

The activity being saved.

outState
Bundle

The bundle to pass to the call.

outPersistentState
PersistableBundle

The persistent bundle to pass to the call.

Attributes

Remarks

Perform calling of an activity's Activity#onSaveInstanceState method. The default implementation simply calls through to that method.

Java documentation for android.app.Instrumentation.callActivityOnSaveInstanceState(android.app.Activity, android.os.Bundle, android.os.PersistableBundle).

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