createAccount

fun createAccount(context: Context, account: Account, userData: Map<String, String>, password: SensitiveString? = null): Boolean

Creates a system account and makes sure the user data are set correctly.

Return

whether the account has been created

Parameters

context

operating context

account

account to create

userData

user data to set

password

password to set