TranslationManager.AddOnDeviceTranslationCapabilityUpdateListener Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.