Share via


VoiceInteractionSession.OnAssistStructureFailure(Throwable) Method

Definition

Called when there has been a failure transferring the AssistStructure to the assistant.

[Android.Runtime.Register("onAssistStructureFailure", "(Ljava/lang/Throwable;)V", "GetOnAssistStructureFailure_Ljava_lang_Throwable_Handler", ApiSince=23)]
public virtual void OnAssistStructureFailure (Java.Lang.Throwable? failure);
[<Android.Runtime.Register("onAssistStructureFailure", "(Ljava/lang/Throwable;)V", "GetOnAssistStructureFailure_Ljava_lang_Throwable_Handler", ApiSince=23)>]
abstract member OnAssistStructureFailure : Java.Lang.Throwable -> unit
override this.OnAssistStructureFailure : Java.Lang.Throwable -> unit

Parameters

failure
Throwable

The failure exception that was thrown when building the AssistStructure.

Attributes

Remarks

Called when there has been a failure transferring the AssistStructure to the assistant. This may happen, for example, if the data is too large and results in an out of memory exception, the data has been cleared during transferring due to the new incoming assist data, or the client has provided corrupt data. This will be called immediately before #onHandleAssist and the AssistStructure supplied there afterwards will be null.

Java documentation for android.service.voice.VoiceInteractionSession.onAssistStructureFailure(java.lang.Throwable).

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