Class Info |
|---|
public class SearchServiceFactory Creates a SearchService object. |
Qualifier and Type |
Method Name and Description |
|---|---|
public static synchronized SearchService |
create(Context context, String apiKey) Creates a SearchService object. |
public static synchronized SearchService |
create(Context context, String apiKey, String routePolicy) Creates a SearchService object. A data storage location can be specified. |
Method |
|---|
public static synchronized SearchService create(Context context, String apiKey) Creates a SearchService object using context and apiKey. A data storage location can be specified. You can obtain apiKey from client>>api_key in the agconnect-services.json file. |
Parameters
Name |
Description |
|---|---|
context |
Context. |
apiKey |
Value of client>>api_key in the agconnect-services.json file. |
Returns
Type |
Description |
|---|---|
SearchService object. |
Method |
|---|
public static synchronized SearchService create(Context context, String apiKey, String routePolicy) Creates a SearchService object using context and apiKey. You can obtain apiKey from client>>api_key in the agconnect-services.json file. |
Parameters
Name |
Description |
|---|---|
context |
Context. |
apiKey |
Value of client>>api_key in the agconnect-services.json file. |
routePolicy |
Country code of the data storage location. The options include DE, SG, RU, and CN. |
Returns
Type |
Description |
|---|---|
SearchService object. |