Stay organized with collections
Save and categorize content based on your preferences.
SearchEvent
open class SearchEvent
Class that contains information about an event that triggers a search.
Summary
Public constructors |
Create a new search event.
|
Public constructors
SearchEvent
SearchEvent(inputDevice: InputDevice!)
Create a new search event.
Public methods
open fun getInputDevice(): InputDevice!
Returns the InputDevice
that triggered the search.
Return |
InputDevice! |
InputDevice the InputDevice that triggered the search. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SearchEvent\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSearchEvent\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/SearchEvent \"View this page in Java\") \n\n```\nopen class SearchEvent\n```\n\n|---|-------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.view.SearchEvent](#) |\n\nClass that contains information about an event that triggers a search.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [SearchEvent](#SearchEvent(android.view.InputDevice))`(`inputDevice:` `[InputDevice](/reference/kotlin/android/view/InputDevice)!`)` Create a new search event. |\n\n| Public methods ||\n|-----------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| open [InputDevice](/reference/kotlin/android/view/InputDevice)! | [getInputDevice](#getInputDevice())`()` Returns the [InputDevice](/reference/kotlin/android/view/InputDevice) that triggered the search. |\n\nPublic constructors\n-------------------\n\n### SearchEvent\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSearchEvent(inputDevice: InputDevice!)\n```\n\nCreate a new search event.\n\nPublic methods\n--------------\n\n### getInputDevice\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getInputDevice(): InputDevice!\n```\n\nReturns the [InputDevice](/reference/kotlin/android/view/InputDevice) that triggered the search.\n\n| Return ||\n|------------------------------------------------------------|--------------------------------------------------------|\n| [InputDevice](/reference/kotlin/android/view/InputDevice)! | InputDevice the InputDevice that triggered the search. |"]]