AppInstallFilters.Builder


public static final class AppInstallFilters.Builder
extends Object

java.lang.Object
   ↳ android.adservices.common.AppInstallFilters.Builder


Builder for creating AppInstallFilters objects.

Summary

Public constructors

Builder()

Public methods

AppInstallFilters build()

Builds and returns a AppInstallFilters instance.

AppInstallFilters.Builder setPackageNames(Set<String> packageNames)

Gets the list of package names this ad is filtered on.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public AppInstallFilters build ()

Builds and returns a AppInstallFilters instance.

Returns
AppInstallFilters This value cannot be null.

setPackageNames

public AppInstallFilters.Builder setPackageNames (Set<String> packageNames)

Gets the list of package names this ad is filtered on.

See AppInstallFilters.getPackageNames() for more information.

Parameters
packageNames Set: This value cannot be null.

Returns
AppInstallFilters.Builder This value cannot be null.