VoiceInteractionSession.OnTaskFinished(Intent, Int32) Method

Definition

Called when the last activity of a task initiated by #startVoiceActivity(android.content.Intent) has finished.

[Android.Runtime.Register("onTaskFinished", "(Landroid/content/Intent;I)V", "GetOnTaskFinished_Landroid_content_Intent_IHandler", ApiSince=23)]
public virtual void OnTaskFinished (Android.Content.Intent? intent, int taskId);
[<Android.Runtime.Register("onTaskFinished", "(Landroid/content/Intent;I)V", "GetOnTaskFinished_Landroid_content_Intent_IHandler", ApiSince=23)>]
abstract member OnTaskFinished : Android.Content.Intent * int -> unit
override this.OnTaskFinished : Android.Content.Intent * int -> unit

Parameters

intent
Intent

The original Intent supplied to #startVoiceActivity(android.content.Intent).

taskId
Int32

Unique ID of the finished task.

Attributes

Remarks

Called when the last activity of a task initiated by #startVoiceActivity(android.content.Intent) has finished. The default implementation calls #finish() on the assumption that this represents the completion of a voice action. You can override the implementation if you would like a different behavior.

Java documentation for android.service.voice.VoiceInteractionSession.onTaskFinished(android.content.Intent, int).

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