Builder
class Builder : GenericDocument.Builder<AppSearchAccount.Builder!>
| kotlin.Any | ||
| ↳ | android.app.appsearch.GenericDocument.Builder<android.app.appsearch.AppSearchAccount.Builder> | |
| ↳ | android.app.appsearch.AppSearchAccount.Builder | |
The builder class for AppSearchAccount.
Summary
| Public constructors | |
|---|---|
|
Creates a new |
|
| Public methods | |
|---|---|
| AppSearchAccount |
build()Builds the |
| AppSearchAccount.Builder |
setAccountId(accountId: String)Sets the account id of |
| AppSearchAccount.Builder |
setAccountName(accountName: String)Sets the name of |
| AppSearchAccount.Builder |
setAccountType(accountType: String)Sets the type of |
| Inherited functions | |
|---|---|
Public constructors
Builder
Builder(
namespace: String,
id: String)
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
fun build(): AppSearchAccount
Builds the AppSearchAccount object.
| Return | |
|---|---|
AppSearchAccount |
This value cannot be null. |
setAccountId
fun setAccountId(accountId: String): AppSearchAccount.Builder
Sets the account id of AppSearchAccount.
| Parameters | |
|---|---|
accountId |
String: A non-null, permanent identifier for the account. |
| Return | |
|---|---|
AppSearchAccount.Builder |
This value cannot be null. |
setAccountName
fun setAccountName(accountName: String): AppSearchAccount.Builder
Sets the name of AppSearchAccount.
| Parameters | |
|---|---|
accountName |
String: The non-null name for the specific user account. |
| Return | |
|---|---|
AppSearchAccount.Builder |
This value cannot be null. |
setAccountType
fun setAccountType(accountType: String): AppSearchAccount.Builder
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. |
| Return | |
|---|---|
AppSearchAccount.Builder |
This value cannot be null. |