語言

Activity.SetExitSharedElementCallback(SharedElementCallback) 方法

定義

android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.view.View, String) 使用 來啟動活動時, <會呼叫 var>callback</var> 來處理 啟動 活動上的共享元素。

[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

用於操作啟動活動上的共享元素轉換。

屬性

備註

當使用 android.app.ActivityOptions.makeSceneTransitionAnimation(Activity,android.view.View,String) 啟動活動時,會呼叫回調以處理啟動活動上的共享元素。 大多數來電只會在從開始活動回來時接通。 這需要Window.FEATURE_ACTIVITY_TRANSITIONS。

Android 參考資料。android.app.Activity.setExitSharedElementCallback

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於