Compartilhar via


TranslationManager.AddOnDeviceTranslationCapabilityUpdateListener Method

Definition

Adds a TranslationCapability Consumer to listen for updates on states of on-device TranslationCapabilitys.

[Android.Runtime.Register("addOnDeviceTranslationCapabilityUpdateListener", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=31)]
public void AddOnDeviceTranslationCapabilityUpdateListener (Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer capabilityListener);
[<Android.Runtime.Register("addOnDeviceTranslationCapabilityUpdateListener", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=31)>]
member this.AddOnDeviceTranslationCapabilityUpdateListener : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

executor
IExecutor
capabilityListener
IConsumer

a TranslationCapability Consumer to receive the updated TranslationCapability from the on-device translation service.

Attributes

Remarks

Adds a TranslationCapability Consumer to listen for updates on states of on-device TranslationCapabilitys.

Java documentation for android.view.translation.TranslationManager.addOnDeviceTranslationCapabilityUpdateListener(java.util.concurrent.Executor, java.util.function.Consumer<android.view.translation.TranslationCapability>).

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