Share via


SearchManager.IOnCancelListener.OnCancel Method

Definition

This method will be called when the search UI is canceled.

[Android.Runtime.Register("onCancel", "()V", "GetOnCancelHandler:Android.App.SearchManager/IOnCancelListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnCancel ();
[<Android.Runtime.Register("onCancel", "()V", "GetOnCancelHandler:Android.App.SearchManager/IOnCancelListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnCancel : unit -> unit
Attributes

Remarks

This method will be called when the search UI is canceled. To make use if it, you must implement this method in your activity, and call SearchManager#setOnCancelListener to register it.

Java documentation for android.app.SearchManager.OnCancelListener.onCancel().

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