Partager via


IsolatedService.GetModelManager(RequestToken) Method

Definition

Returns an ModelManager for the current request.

[Android.Runtime.Register("getModelManager", "(Landroid/adservices/ondevicepersonalization/RequestToken;)Landroid/adservices/ondevicepersonalization/ModelManager;", "", ApiSince=35)]
public Android.AdServices.OnDevicePersonalization.ModelManager GetModelManager (Android.AdServices.OnDevicePersonalization.RequestToken requestToken);
[<Android.Runtime.Register("getModelManager", "(Landroid/adservices/ondevicepersonalization/RequestToken;)Landroid/adservices/ondevicepersonalization/ModelManager;", "", ApiSince=35)>]
member this.GetModelManager : Android.AdServices.OnDevicePersonalization.RequestToken -> Android.AdServices.OnDevicePersonalization.ModelManager

Parameters

requestToken
RequestToken

an opaque token that identifies the current request to the service.

Returns

An ModelManager that can be used for model inference.

Attributes

Remarks

Returns an ModelManager for the current request. The ModelManager can be used to do model inference. It only supports Tensorflow Lite model inference now.

Java documentation for android.adservices.ondevicepersonalization.IsolatedService.getModelManager(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