AI-generated Key Takeaways
-
Indexable.Metadata.Builderis used to buildIndexable.Metadata. -
The constructor for
Indexable.Metadata.BuilderisBuilder(). -
You can set the score of an object using the
setScore(int score)method. -
You can set whether an object is available offline using the
setWorksOffline(boolean worksOffline)method.
The builder for Indexable.Metadata.
Public Constructor Summary
|
Builder()
The constructor.
|
Public Method Summary
| Indexable.Metadata.Builder |
setScore(int score)
Sets the score of the object.
|
| Indexable.Metadata.Builder |
setWorksOffline(boolean worksOffline)
Sets whether the object is available offline in the app.
|
Inherited Method Summary
Public Constructors
public Builder ()
The constructor.
Public Methods
public Indexable.Metadata.Builder setScore (int score)
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 | The score. The default is zero (0), negative values are not allowed. |
|---|
public Indexable.Metadata.Builder setWorksOffline (boolean worksOffline)
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. For example, in airplane mode.
Parameters
| worksOffline | Represents whether the object works offline. The default is
false. |
|---|