Freigeben über


Fragment.SetExitSharedElementCallback(SharedElementCallback) Method

Definition

When custom transitions are used with Fragments, the exit transition callback is called when this Fragment is attached or detached when popping the back stack.

[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

Used to manipulate the shared element transitions on this Fragment when added as a pop from the back stack.

Attributes

Remarks

When custom transitions are used with Fragments, the exit transition callback is called when this Fragment is attached or detached when popping the back stack.

Java documentation for android.app.Fragment.setExitSharedElementCallback(android.app.SharedElementCallback).

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