Activity.SetExitSharedElementCallback(SharedElementCallback) Method

Definition

When android.app.ActivityOptions.makeSceneTransitionAnimation(Activity,android.view.View,String) was used to start an Activity, callback will be called to handle shared elements on the launching Activity.

[Android.Runtime.Register("setExitSharedElementCallback", "(Landroid/app/SharedElementCallback;)V", "GetSetExitSharedElementCallback_Landroid_app_SharedElementCallback_Handler")]
public virtual void SetExitSharedElementCallback(Android.App.SharedElementCallback? callback);
[<Android.Runtime.Register("setExitSharedElementCallback", "(Landroid/app/SharedElementCallback;)V", "GetSetExitSharedElementCallback_Landroid_app_SharedElementCallback_Handler")>]
abstract member SetExitSharedElementCallback : Android.App.SharedElementCallback -> unit
override this.SetExitSharedElementCallback : Android.App.SharedElementCallback -> unit

Parameters

callback
SharedElementCallback

SharedElementCallback: Used to manipulate shared element transitions on the launching Activity.

Attributes

Remarks

When android.app.ActivityOptions.makeSceneTransitionAnimation(Activity,android.view.View,String) was used to start an Activity, callback will be called to handle shared elements on the launching Activity. Most calls will only come when returning from the started Activity. This requires Window.FEATURE_ACTIVITY_TRANSITIONS.

Android reference for android.app.Activity.setExitSharedElementCallback.

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