TvInteractiveAppService.Session.OnSetSurface(Surface) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當應用程式設定地面時呼叫。
[Android.Runtime.Register("onSetSurface", "(Landroid/view/Surface;)Z", "GetOnSetSurface_Landroid_view_Surface_Handler", ApiSince=33)]
public abstract bool OnSetSurface(Android.Views.Surface? surface);
[<Android.Runtime.Register("onSetSurface", "(Landroid/view/Surface;)Z", "GetOnSetSurface_Landroid_view_Surface_Handler", ApiSince=33)>]
abstract member OnSetSurface : Android.Views.Surface -> bool
參數
- surface
- Surface
Surface 將用於互動式應用程式 UI 渲染。 可以是 null。
傳回
true 如果表面成功設置, false 否則。
- 屬性
備註
當應用程式設定地面時呼叫。
TV Interactive App 服務應該會將互動式應用程式的 UI 渲染到給定的表面上。 當以 呼叫時 null,互動式應用程式服務應立即釋放對當前設定表面的任何參考並停止使用。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。