getAccountIndex

open fun getAccountIndex(@Nullable account: String): Int

Get index of an account.

Return

The index; 0 ≤ return <getAccountCount. 0 if feature Multiple Accounts is not provided. -1if there is no such account.

Parameters

account

ID of the account to get the index for or null if feature Multiple Accounts is not provided.