account_manager_plugin 0.0.3 account_manager_plugin: ^0.0.3 copied to clipboard
AccountManager for Android obtains all accounts registered in the user's device
account_manager_plugin #
This plugin allows Flutter apps to obtain all accounts registered in the user's device.
Usage #
Support only for Android. Added permission in the Manifests:
<uses-permission
android:name="android.permission.GET_ACCOUNTS"
android:maxSdkVersion="22" />
If the plugin is invoked on iOS, it will crash your app. In checked mode, we assert that the platform should be Android.
Use it by specifying action:
if (platform.isAndroid) {
try {
List<dynamic> accounts = await AccountManagerPlugin.getAccounts;
} on PlatformException {}
}
Getting Started #
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.