Udostępnij za pośrednictwem


IsolatedService.OnRequest(RequestToken) Method

Definition

Return an instance of an IsolatedWorker that handles client requests.

[Android.Runtime.Register("onRequest", "(Landroid/adservices/ondevicepersonalization/RequestToken;)Landroid/adservices/ondevicepersonalization/IsolatedWorker;", "GetOnRequest_Landroid_adservices_ondevicepersonalization_RequestToken_Handler", ApiSince=35)]
public abstract Android.AdServices.OnDevicePersonalization.IIsolatedWorker OnRequest (Android.AdServices.OnDevicePersonalization.RequestToken requestToken);
[<Android.Runtime.Register("onRequest", "(Landroid/adservices/ondevicepersonalization/RequestToken;)Landroid/adservices/ondevicepersonalization/IsolatedWorker;", "GetOnRequest_Landroid_adservices_ondevicepersonalization_RequestToken_Handler", ApiSince=35)>]
abstract member OnRequest : Android.AdServices.OnDevicePersonalization.RequestToken -> Android.AdServices.OnDevicePersonalization.IIsolatedWorker

Parameters

requestToken
RequestToken

an opaque token that identifies the current request to the service that must be passed to service methods that depend on per-request state.

Returns

Attributes

Remarks

Return an instance of an IsolatedWorker that handles client requests.

Java documentation for android.adservices.ondevicepersonalization.IsolatedService.onRequest(android.adservices.ondevicepersonalization.RequestToken).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to