AppSearchOptions
Stay organized with collections
Save and categorize content based on your preferences.
Nested Class Summary
class
Builder to construct instances of
AppSearchOptions.
Inherited Field Summary
From interface
com.google.android.gms.common.api.Api.ApiOptions
public static final Api.ApiOptions.NoOptions |
NO_OPTIONS |
|
Inherited Method Summary
From class java.lang.Object
Public Methods
public boolean
equals
( Object
obj)
public Executor
getWorkerExecutor
()
Getter for workerExecutor.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 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 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eAppSearchOptions\u003c/code\u003e is used to configure instances of \u003ccode\u003eAppSearchClient\u003c/code\u003e and \u003ccode\u003eGlobalSearchClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides options like setting a custom \u003ccode\u003eExecutor\u003c/code\u003e for background tasks using \u003ccode\u003egetWorkerExecutor()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can create instances of \u003ccode\u003eAppSearchOptions\u003c/code\u003e using the nested \u003ccode\u003eBuilder\u003c/code\u003e class.\u003c/p\u003e\n"]]],["`AppSearchOptions` configures `AppSearchClient` and `GlobalSearchClient`. Key actions include using the `AppSearchOptions.Builder` to create instances of `AppSearchOptions`. Public methods allow checking object equality via `equals()`, retrieving the worker executor with `getWorkerExecutor()`, and getting the hash code with `hashCode()`. It also includes inherited methods from `Object`, like `toString()`, `wait()`, and `notify()`. Additionally, there's a `NO_OPTIONS` field inherited from `Api.ApiOptions`.\n"],null,["# AppSearchOptions\n\npublic final class **AppSearchOptions** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements Api.ApiOptions.HasOptions \nOptions for instantiating a [AppSearchClient](/android/reference/com/google/android/gms/appsearch/AppSearchClient)\nand [GlobalSearchClient](/android/reference/com/google/android/gms/appsearch/GlobalSearchClient) \n\n### Nested Class Summary\n\n|-------|---|---|-----------------------------------------------------|\n| class | [AppSearchOptions.Builder](/android/reference/com/google/android/gms/appsearch/AppSearchOptions.Builder) || Builder to construct instances of AppSearchOptions. |\n\n### Inherited Field Summary\n\nFrom interface com.google.android.gms.common.api.Api.ApiOptions \n\n|----------------------------------------------|------------|---|\n| public static final Api.ApiOptions.NoOptions | NO_OPTIONS | |\n\n### Public Method Summary\n\n|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/android/reference/com/google/android/gms/appsearch/AppSearchOptions#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) obj) |\n| [Executor](//developer.android.com/reference/java/util/concurrent/Executor.html) | [getWorkerExecutor](/android/reference/com/google/android/gms/appsearch/AppSearchOptions#getWorkerExecutor())() Getter for workerExecutor. |\n| int | [hashCode](/android/reference/com/google/android/gms/appsearch/AppSearchOptions#hashCode())() |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) obj)\n\n#### public [Executor](//developer.android.com/reference/java/util/concurrent/Executor.html)\n**getWorkerExecutor** ()\n\nGetter for workerExecutor. \n\n#### public int **hashCode** ()"]]