GetSchemaResponse

public class GetSchemaResponse
extends Object

java.lang.Object
   ↳ androidx.appsearch.app.GetSchemaResponse


The response class of AppSearchSession.getSchema()

Summary

Nested classes

class GetSchemaResponse.Builder

Builder for GetSchemaResponse objects. 

Public methods

Set<AppSearchSchema> getSchemas()

Return the schemas most recently successfully provided to AppSearchSession.setSchema(SetSchemaRequest).

int getVersion()

Returns the overall database schema version.

Inherited methods

Public methods

getSchemas

public Set<AppSearchSchema> getSchemas ()

Return the schemas most recently successfully provided to AppSearchSession.setSchema(SetSchemaRequest).

It is inefficient to call this method repeatedly.

Returns
Set<AppSearchSchema>

getVersion

public int getVersion ()

Returns the overall database schema version.

If the database is empty, 0 will be returned.

Returns
int