Activity.SetExitSharedElementCallback(SharedElementCallback) 메서드

정의

android.app.ActivityOptions.makeSceneTransitionAnimation(Activity,android.view.View,String)을 사용하여 활동을 시작하면 시작 작업의 공유 요소를 처리하기 위해 콜백이 호출됩니다.

[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

매개 변수

callback
SharedElementCallback

SharedElementCallback: 시작 작업에서 공유 요소 전환을 조작하는 데 사용됩니다.

특성

설명

android.app.ActivityOptions.makeSceneTransitionAnimation(Activity,android.view.View,String)을 사용하여 활동을 시작하면 시작 작업의 공유 요소를 처리하기 위해 콜백이 호출됩니다. 대부분의 호출은 시작된 활동에서 돌아올 때만 발생합니다. 이를 위해서는 Window.FEATURE_ACTIVITY_TRANSITIONS 필요합니다.

에 대한 android.app.Activity.setExitSharedElementCallbackAndroid 참조

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상