VoiceInteractionSession.PerformDirectAction(DirectAction, Bundle, CancellationSignal, IExecutor, IConsumer) 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.
Asks that an action be performed by the app.
[Android.Runtime.Register("performDirectAction", "(Landroid/app/DirectAction;Landroid/os/Bundle;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=29)]
public void PerformDirectAction (Android.App.DirectAction action, Android.OS.Bundle? extras, Android.OS.CancellationSignal? cancellationSignal, Java.Util.Concurrent.IExecutor resultExecutor, Java.Util.Functions.IConsumer resultListener);
[<Android.Runtime.Register("performDirectAction", "(Landroid/app/DirectAction;Landroid/os/Bundle;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=29)>]
member this.PerformDirectAction : Android.App.DirectAction * Android.OS.Bundle * Android.OS.CancellationSignal * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
Parameters
- action
- DirectAction
The action to be performed.
- extras
- Bundle
Any optional extras sent to the app as part of the request
- cancellationSignal
- CancellationSignal
A signal to cancel the operation in progress,
or null if none.
- resultExecutor
- IExecutor
The handler to receive the callback.
- resultListener
- IConsumer
The callback to receive the response.
- Attributes
Remarks
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.