SharedElementCallback.OnCaptureSharedElementSnapshot 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立遠程活動所要使用的共用元素快照集,並使用 進行重新建構 #onCreateSnapshotView(android.content.Context, android.os.Parcelable)
。
[Android.Runtime.Register("onCaptureSharedElementSnapshot", "(Landroid/view/View;Landroid/graphics/Matrix;Landroid/graphics/RectF;)Landroid/os/Parcelable;", "GetOnCaptureSharedElementSnapshot_Landroid_view_View_Landroid_graphics_Matrix_Landroid_graphics_RectF_Handler")]
public virtual Android.OS.IParcelable? OnCaptureSharedElementSnapshot(Android.Views.View? sharedElement, Android.Graphics.Matrix? viewToGlobalMatrix, Android.Graphics.RectF? screenBounds);
[<Android.Runtime.Register("onCaptureSharedElementSnapshot", "(Landroid/view/View;Landroid/graphics/Matrix;Landroid/graphics/RectF;)Landroid/os/Parcelable;", "GetOnCaptureSharedElementSnapshot_Landroid_view_View_Landroid_graphics_Matrix_Landroid_graphics_RectF_Handler")>]
abstract member OnCaptureSharedElementSnapshot : Android.Views.View * Android.Graphics.Matrix * Android.Graphics.RectF -> Android.OS.IParcelable
override this.OnCaptureSharedElementSnapshot : Android.Views.View * Android.Graphics.Matrix * Android.Graphics.RectF -> Android.OS.IParcelable
參數
- sharedElement
- View
要為其建立快照集的共享專案 View。
- viewToGlobalMatrix
- Matrix
矩陣,包含從檢視到螢幕座標的轉換。
- screenBounds
- RectF
螢幕座標空間中共用專案的界限。 這是套用 viewToGlobalMatrix 之檢視的界限。
傳回
要重新建構 #onCreateSnapshotView(android.content.Context, android.os.Parcelable)
並傳入 #onSharedElementStart(java.util.List, java.util.List, java.util.List)
和 #onSharedElementEnd(java.util.List, java.util.List, java.util.List)
的遠端活動傳送至遠端活動的快照集。
- 屬性
備註
建立遠程活動所要使用的共用元素快照集,並使用 進行重新建構 #onCreateSnapshotView(android.content.Context, android.os.Parcelable)
。 Null 傳回值表示遠程活動在 和 #onSharedElementEnd(java.util.List, java.util.List, java.util.List)
中#onSharedElementStart(java.util.List, java.util.List, java.util.List)
會有 Null 快照集檢視。
這不會針對片段轉換呼叫。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。