語言

OnDevicePersonalizationManager.RequestSurfacePackage 方法

定義

請求將 a android.view.SurfaceControlViewHost.SurfacePackage 插入 a 在 android.view.SurfaceView 呼叫應用程式內。

[Android.Runtime.Register("requestSurfacePackage", "(Landroid/adservices/ondevicepersonalization/SurfacePackageToken;Landroid/os/IBinder;IIILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetRequestSurfacePackage_Landroid_adservices_ondevicepersonalization_SurfacePackageToken_Landroid_os_IBinder_IIILjava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=35)]
public virtual void RequestSurfacePackage(Android.AdServices.OnDevicePersonalization.SurfacePackageToken surfacePackageToken, Android.OS.IBinder surfaceViewHostToken, int displayId, int width, int height, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("requestSurfacePackage", "(Landroid/adservices/ondevicepersonalization/SurfacePackageToken;Landroid/os/IBinder;IIILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetRequestSurfacePackage_Landroid_adservices_ondevicepersonalization_SurfacePackageToken_Landroid_os_IBinder_IIILjava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=35)>]
abstract member RequestSurfacePackage : Android.AdServices.OnDevicePersonalization.SurfacePackageToken * Android.OS.IBinder * int * int * int * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.RequestSurfacePackage : Android.AdServices.OnDevicePersonalization.SurfacePackageToken * Android.OS.IBinder * int * int * int * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

參數

surfacePackageToken
SurfacePackageToken

指先前呼叫#execute(ComponentName, PersistableBundle, Executor, OutcomeReceiver)回傳的 。SurfacePackageToken

surfaceViewHostToken
IBinder

該 的 hostToken android.view.SurfaceView在加入檢視階層後android.view.SurfaceView回傳android.view.SurfaceView#getHostToken()。

displayId
Int32

邏輯顯示的整數 ID,用來顯示 android.view.SurfaceControlViewHost.SurfacePackage,由 Context.getDisplay().getDisplayId()返回。

width
Int32

像素的寬度 android.view.SurfaceControlViewHost.SurfacePackage 。

height
Int32

以像素為單位的高度 android.view.SurfaceControlViewHost.SurfacePackage 。

executor
IExecutor

呼叫 Executor 的對象

receiver
IOutcomeReceiver

這要麼成功時回傳 A android.view.SurfaceControlViewHost.SurfacePackage ,要麼 Exception 失敗。 例外類型是 OnDevicePersonalizationException 當處理器執行失敗時。

屬性

備註

請求將 a android.view.SurfaceControlViewHost.SurfacePackage 插入 a 在 android.view.SurfaceView 呼叫應用程式內。 Surface 套件會包含 android.view.View 先前在 #execute(ComponentName, PersistableBundle, Executor, OutcomeReceiver) OnDevicePersonalization 沙盒中執行時所產生的內容。

Java 文件 android.adservices.ondevicepersonalization.OnDevicePersonalizationManager.requestSurfacePackage(android.adservices.ondevicepersonalization.SurfacePackageToken, android.os.IBinder, int, int, int, java.util.concurrent.Executor, android.os.OutcomeReceiver<android.view.SurfaceControlViewHost.SurfacePackage, java.lang.Exception>)。

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

適用於