Share via


SearchManager.SetOnCancelListener(SearchManager+IOnCancelListener) Method

Definition

Set or clear the callback that will be invoked whenever the search UI is canceled.

[Android.Runtime.Register("setOnCancelListener", "(Landroid/app/SearchManager$OnCancelListener;)V", "GetSetOnCancelListener_Landroid_app_SearchManager_OnCancelListener_Handler")]
public virtual void SetOnCancelListener (Android.App.SearchManager.IOnCancelListener? listener);
[<Android.Runtime.Register("setOnCancelListener", "(Landroid/app/SearchManager$OnCancelListener;)V", "GetSetOnCancelListener_Landroid_app_SearchManager_OnCancelListener_Handler")>]
abstract member SetOnCancelListener : Android.App.SearchManager.IOnCancelListener -> unit
override this.SetOnCancelListener : Android.App.SearchManager.IOnCancelListener -> unit

Parameters

listener
SearchManager.IOnCancelListener

The OnCancelListener to use, or null.

Attributes

Remarks

Java documentation for android.app.SearchManager.setOnCancelListener(android.content.OnCancelListener).

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