Stay organized with collections
Save and categorize content based on your preferences.
WebView.FindListener
public
static
interface
WebView.FindListener
android.webkit.WebView.FindListener
|
Interface to listen for find results.
Summary
Public methods |
abstract
void
|
onFindResultReceived(int activeMatchOrdinal, int numberOfMatches, boolean isDoneCounting)
Notifies the listener about progress made by a find operation.
|
Public methods
onFindResultReceived
public abstract void onFindResultReceived (int activeMatchOrdinal,
int numberOfMatches,
boolean isDoneCounting)
Notifies the listener about progress made by a find operation.
Parameters |
activeMatchOrdinal |
int : the zero-based ordinal of the currently selected match |
numberOfMatches |
int : how many matches have been found |
isDoneCounting |
boolean : whether the find operation has actually completed. The listener
may be notified multiple times while the
operation is underway, and the numberOfMatches
value should not be considered final unless
isDoneCounting is true . |
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,["# WebView.FindListener\n\nAdded in [API level 16](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nWebView.FindListener\n====================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/webkit/WebView.FindListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nWebView.FindListener\n`\n\n\n`\n\n\n`\n\n|-------------------------------------|\n| android.webkit.WebView.FindListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface to listen for find results.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onFindResultReceived](/reference/android/webkit/WebView.FindListener#onFindResultReceived(int,%20int,%20boolean))`(int activeMatchOrdinal, int numberOfMatches, boolean isDoneCounting) ` Notifies the listener about progress made by a find operation. |\n\nPublic methods\n--------------\n\n### onFindResultReceived\n\nAdded in [API level 16](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onFindResultReceived (int activeMatchOrdinal, \n int numberOfMatches, \n boolean isDoneCounting)\n```\n\nNotifies the listener about progress made by a find operation.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `activeMatchOrdinal` | `int`: the zero-based ordinal of the currently selected match \u003cbr /\u003e |\n| `numberOfMatches` | `int`: how many matches have been found \u003cbr /\u003e |\n| `isDoneCounting` | `boolean`: whether the find operation has actually completed. The listener may be notified multiple times while the operation is underway, and the numberOfMatches value should not be considered final unless isDoneCounting is `true`. \u003cbr /\u003e |"]]