Dialog.OnSearchRequested Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| OnSearchRequested(SearchEvent) |
This hook is called when the user signals the desire to start a search. |
| OnSearchRequested() |
This hook is called when the user signals the desire to start a search. |
OnSearchRequested(SearchEvent)
This hook is called when the user signals the desire to start a search.
[Android.Runtime.Register("onSearchRequested", "(Landroid/view/SearchEvent;)Z", "GetOnSearchRequested_Landroid_view_SearchEvent_Handler", ApiSince=23)]
public virtual bool OnSearchRequested(Android.Views.SearchEvent searchEvent);
[<Android.Runtime.Register("onSearchRequested", "(Landroid/view/SearchEvent;)Z", "GetOnSearchRequested_Landroid_view_SearchEvent_Handler", ApiSince=23)>]
abstract member OnSearchRequested : Android.Views.SearchEvent -> bool
override this.OnSearchRequested : Android.Views.SearchEvent -> bool
Parameters
- searchEvent
- SearchEvent
SearchEvent: This value cannot be null.
Returns
true if search launched, false if activity refuses (blocks)
Implements
- Attributes
Remarks
This hook is called when the user signals the desire to start a search.
Android reference for android.app.Dialog.onSearchRequested.
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
OnSearchRequested()
This hook is called when the user signals the desire to start a search.
[Android.Runtime.Register("onSearchRequested", "()Z", "GetOnSearchRequestedHandler")]
public virtual bool OnSearchRequested();
[<Android.Runtime.Register("onSearchRequested", "()Z", "GetOnSearchRequestedHandler")>]
abstract member OnSearchRequested : unit -> bool
override this.OnSearchRequested : unit -> bool
Returns
true if search launched, false if activity refuses (blocks)
Implements
- Attributes
Remarks
This hook is called when the user signals the desire to start a search.
Android reference for android.app.Dialog.onSearchRequested.
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.