java.lang.Object | |
↳ | com.google.firebase.appindexing.Indexable.Metadata.Builder |
The builder for Indexable.Metadata
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the score of the object.
| |||||||||||
Sets whether the object is available offline in the app.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The constructor.
Sets the score of the object.
The score signifies the relative importance of this compared to other objects in the index from the app.
Parameters | |
---|---|
score |
int :
The score. The default is zero (0), negative values are not allowed.
|
Returns | |
---|---|
Indexable.Metadata.Builder |
Sets whether the object is available offline in the app.
Working offline means that a user is able to launch the app with the URL and interact with the content without network connections, e.g. in airplane mode.
Parameters | |
---|---|
worksOffline |
boolean :
Represents whether the object works offline. The default is false .
|
Returns | |
---|---|
Indexable.Metadata.Builder |