MockAccountManager
open classMockAccountManager
| kotlin.Any | |
| ↳ | android.test.mock.MockAccountManager |
A mock android.accounts.AccountManager class.
Provided for use by android.test.IsolatedContext.
Summary
| Public methods | |
|---|---|
| open static AccountManager! |
newMockAccountManager(context: Context!)Create a new mock |
Public methods
newMockAccountManager
Added in API level 28
open static funnewMockAccountManager(context: Context!): AccountManager!
Deprecated: Deprecated in Java.
Create a new mock AccountManager instance.
| Parameters | |
|---|---|
context |
Context!: the Context to which the returned object belongs. |
| Return | |
|---|---|
AccountManager! |
the new instance. |