public static final class

Indexable.Metadata.Builder

extends Object
java.lang.Object
   ↳ com.google.firebase.appindexing.Indexable.Metadata.Builder

Class Overview

The builder for Indexable.Metadata.

Summary

Public Constructors
Indexable.Metadata.Builder()
The constructor.
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Indexable.Metadata.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 int: The score. The default is zero (0), negative values are not allowed.
Returns
Indexable.Metadata.Builder

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, e.g. in airplane mode.

Parameters
worksOffline boolean: Represents whether the object works offline. The default is false.
Returns
Indexable.Metadata.Builder