public final class

SearchSessionStats.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.localstorage.stats.SearchSessionStats.Builder

Overview

Builder for SearchSessionStats.

Summary

Constructors
publicBuilder(java.lang.String packageName)

Constructor for the SearchSessionStats.Builder.

Methods
public SearchSessionStats.BuilderaddSearchIntentsStats(java.util.Collection<SearchIntentStats> searchIntentsStats)

Adds a collection of SearchIntentStats objects to this search intent.

public SearchSessionStats.BuilderaddSearchIntentsStats(SearchIntentStats searchIntentsStats[])

Adds one or more SearchIntentStats objects to this search intent.

public SearchSessionStatsbuild()

Builds a new SearchSessionStats from the SearchSessionStats.Builder.

public SearchSessionStats.BuildersetDatabase(java.lang.String database)

Sets calling database name.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(java.lang.String packageName)

Constructor for the SearchSessionStats.Builder.

Methods

public SearchSessionStats.Builder setDatabase(java.lang.String database)

Sets calling database name.

For global search, database name will be null.

public SearchSessionStats.Builder addSearchIntentsStats(SearchIntentStats searchIntentsStats[])

Adds one or more SearchIntentStats objects to this search intent.

public SearchSessionStats.Builder addSearchIntentsStats(java.util.Collection<SearchIntentStats> searchIntentsStats)

Adds a collection of SearchIntentStats objects to this search intent.

public SearchSessionStats build()

Builds a new SearchSessionStats from the SearchSessionStats.Builder.