Udostępnij za pośrednictwem


VoiceInteractionSession.OnBackPressed Method

Definition

Called when the user presses the back button while focus is in the session UI.

[Android.Runtime.Register("onBackPressed", "()V", "GetOnBackPressedHandler", ApiSince=23)]
public virtual void OnBackPressed ();
[<Android.Runtime.Register("onBackPressed", "()V", "GetOnBackPressedHandler", ApiSince=23)>]
abstract member OnBackPressed : unit -> unit
override this.OnBackPressed : unit -> unit
Attributes

Remarks

Called when the user presses the back button while focus is in the session UI. Note that this will only happen if the session UI has requested input focus in its window; otherwise, the back key will go to whatever window has focus and do whatever behavior it normally has there. The default implementation simply calls #hide.

Java documentation for android.service.voice.VoiceInteractionSession.onBackPressed().

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