Sdílet prostřednictvím


Instrumentation.CallActivityOnRestoreInstanceState Method

Definition

Overloads

CallActivityOnRestoreInstanceState(Activity, Bundle, PersistableBundle)

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

CallActivityOnRestoreInstanceState(Activity, Bundle)

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

CallActivityOnRestoreInstanceState(Activity, Bundle, PersistableBundle)

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

[Android.Runtime.Register("callActivityOnRestoreInstanceState", "(Landroid/app/Activity;Landroid/os/Bundle;Landroid/os/PersistableBundle;)V", "GetCallActivityOnRestoreInstanceState_Landroid_app_Activity_Landroid_os_Bundle_Landroid_os_PersistableBundle_Handler")]
public virtual void CallActivityOnRestoreInstanceState (Android.App.Activity activity, Android.OS.Bundle? savedInstanceState, Android.OS.PersistableBundle? persistentState);
[<Android.Runtime.Register("callActivityOnRestoreInstanceState", "(Landroid/app/Activity;Landroid/os/Bundle;Landroid/os/PersistableBundle;)V", "GetCallActivityOnRestoreInstanceState_Landroid_app_Activity_Landroid_os_Bundle_Landroid_os_PersistableBundle_Handler")>]
abstract member CallActivityOnRestoreInstanceState : Android.App.Activity * Android.OS.Bundle * Android.OS.PersistableBundle -> unit
override this.CallActivityOnRestoreInstanceState : Android.App.Activity * Android.OS.Bundle * Android.OS.PersistableBundle -> unit

Parameters

activity
Activity

The activity being restored.

savedInstanceState
Bundle

The previously saved state being restored (or null).

persistentState
PersistableBundle

The previously persisted state (or null)

Attributes

Remarks

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

Java documentation for android.app.Instrumentation.callActivityOnRestoreInstanceState(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

CallActivityOnRestoreInstanceState(Activity, Bundle)

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

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

Parameters

activity
Activity

The activity being restored.

savedInstanceState
Bundle

The previously saved state being restored.

Attributes

Remarks

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

Java documentation for android.app.Instrumentation.callActivityOnRestoreInstanceState(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