VoiceInteractionSession.OnTaskFinished(Intent, Int32) 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.
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.
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.