Activity.SetEnterSharedElementCallback(SharedElementCallback) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When android.app.ActivityOptions#makeSceneTransitionAnimation(Activity,
android.view.View, String)
was used to start an Activity, <var>callback</var>
will be called to handle shared elements on the launched Activity.
[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 shared element transitions on the launched Activity.
- Attributes
Remarks
When android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.view.View, String)
was used to start an Activity, <var>callback</var> will be called to handle shared elements on the launched Activity. This requires Window#FEATURE_ACTIVITY_TRANSITIONS
.
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.