AppSearchAccount.Builder


public static final class AppSearchAccount.Builder
extends Builder<AppSearchAccount.Builder>

java.lang.Object
   ↳ android.app.appsearch.GenericDocument.Builder<android.app.appsearch.AppSearchAccount.Builder>
     ↳ android.app.appsearch.AppSearchAccount.Builder


The builder class for AppSearchAccount.

Summary

Public constructors

Builder(String namespace, String id)

Creates a new AppSearchAccount.Builder

Public methods

AppSearchAccount build()

Builds the AppSearchAccount object.

AppSearchAccount.Builder setAccountId(String accountId)

Sets the account id of AppSearchAccount.

AppSearchAccount.Builder setAccountName(String accountName)

Sets the name of AppSearchAccount.

AppSearchAccount.Builder setAccountType(String accountType)

Sets the type of AppSearchAccount.

Inherited methods

Public constructors

Builder

Added in API level 37
Also in T Extensions 22
public Builder (String namespace, 
                String id)

Creates a new AppSearchAccount.Builder

Parameters
namespace String: The namespace of the account.
This value cannot be null.

id String: The document ID of the account.
This value cannot be null.

Public methods

build

Added in API level 37
Also in T Extensions 22
public AppSearchAccount build ()

Builds the AppSearchAccount object.

Returns
AppSearchAccount This value cannot be null.

setAccountId

Added in API level 37
Also in T Extensions 22
public AppSearchAccount.Builder setAccountId (String accountId)

Sets the account id of AppSearchAccount.

Parameters
accountId String: A non-null, permanent identifier for the account.

Returns
AppSearchAccount.Builder This value cannot be null.

setAccountName

Added in API level 37
Also in T Extensions 22
public AppSearchAccount.Builder setAccountName (String accountName)

Sets the name of AppSearchAccount.

Parameters
accountName String: The non-null name for the specific user account.

Returns
AppSearchAccount.Builder This value cannot be null.

setAccountType

Added in API level 37
Also in T Extensions 22
public AppSearchAccount.Builder setAccountType (String accountType)

Sets the type of AppSearchAccount.

Parameters
accountType String: The non-null, unique identifier for the account service. This must correspond to a registered Authenticator type on the system.

Returns
AppSearchAccount.Builder This value cannot be null.