Compartilhar via


Activity.ShowAssist(Bundle) Method

Definition

Ask to have the current assistant shown to the user.

[Android.Runtime.Register("showAssist", "(Landroid/os/Bundle;)Z", "GetShowAssist_Landroid_os_Bundle_Handler", ApiSince=23)]
public virtual bool ShowAssist (Android.OS.Bundle? args);
[<Android.Runtime.Register("showAssist", "(Landroid/os/Bundle;)Z", "GetShowAssist_Landroid_os_Bundle_Handler", ApiSince=23)>]
abstract member ShowAssist : Android.OS.Bundle -> bool
override this.ShowAssist : Android.OS.Bundle -> bool

Parameters

args
Bundle

Returns

Returns true if the assistant was successfully invoked, else false. For example false will be returned if the caller is not the current top activity.

Attributes

Remarks

Ask to have the current assistant shown to the user. This only works if the calling activity is the current foreground activity. It is the same as calling android.service.voice.VoiceInteractionService#showSession VoiceInteractionService.showSession and requesting all of the possible context. The receiver will always see android.service.voice.VoiceInteractionSession#SHOW_SOURCE_APPLICATION set.

Java documentation for android.app.Activity.showAssist(android.os.Bundle).

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