Språk

Fragment.SetEnterSharedElementCallback(SharedElementCallback) Method

Definition

Sets this fragment's enter shared element callback.

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

Parameters

callback
SharedElementCallback

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

Attributes

Remarks

For a forward transaction, the callback maps shared elements entering with this fragment. When the back stack is popped, it maps shared elements leaving with this fragment. It can also receive shared-element start and end callbacks.

Android reference for android.app.Fragment.setEnterSharedElementCallback.

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