Condividi tramite


VoiceInteractionSession.RequestDirectActions Method

Definition

Requests a list of supported actions from an app.

[Android.Runtime.Register("requestDirectActions", "(Landroid/service/voice/VoiceInteractionSession$ActivityId;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=29)]
public void RequestDirectActions (Android.Service.Voice.VoiceInteractionSession.ActivityId activityId, Android.OS.CancellationSignal? cancellationSignal, Java.Util.Concurrent.IExecutor resultExecutor, Java.Util.Functions.IConsumer callback);
[<Android.Runtime.Register("requestDirectActions", "(Landroid/service/voice/VoiceInteractionSession$ActivityId;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=29)>]
member this.RequestDirectActions : Android.Service.Voice.VoiceInteractionSession.ActivityId * Android.OS.CancellationSignal * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

activityId
VoiceInteractionSession.ActivityId

Ths activity id of the app to get the actions from.

cancellationSignal
CancellationSignal

A signal to cancel the operation in progress, or null if none.

resultExecutor
IExecutor

The handler to receive the callback

callback
IConsumer

The callback to receive the response

Attributes

Remarks

Java documentation for android.service.voice.VoiceInteractionSession.requestDirectActions(android.service.voice.ActivityId, android.os.CancellationSignal, java.util.concurrent.Executor, java.util.function.Consumer).

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