acl_sdk 0.0.1-beta
acl_sdk: ^0.0.1-beta copied to clipboard
Fultter ACL SDK by Unified Intelligence
Flutter ACL Plugin #
A Flutter plugin which provide ACL functioning by Unified Intelligence
Feature #
- Collect device data: battery, device resource, network, app usage
- Collect location
- Collect notification
- Store and sync data to server
- Calculate score
IMPORTANT:
This plugin only support Android for now.
Usage #
- To usage this package, please install it first
flutter pub add acl_sdk
- To initialize the plugin and register device
final _aclSdkPlugin = AclSdk();
...
await _aclSdkPlugin.initialize(AppConfigCreateInput(
lenderId: '<your organization unique name>',
apiEndpoint: '<your api endpoint>',
apiKey: '<your api key>',
apiSecret: '<your api secret>',
appBundle: '<your app bundle>',
));
await _aclSdkPlugin.registerDevice();
- To start collect data and location
await _aclSdkPlugin.startCollectData();
await _aclSdkPlugin.startCollectLocation();
API #
- To get device id
import 'package:acl_sdk/helpers/device_info_helper.dart';
...
final deviceId = await DeviceInfoHelper.generateDeviceId();
- To check app usage access
import 'package:acl_sdk/helpers/permission_helper.dart';
...
final isAllowAppUsage = await PermissionHelper.isPackageUsageStatsEnable()
- To open app usage setting
import 'package:acl_sdk/helpers/permission_helper.dart';
...
await PermissionHelper.goToAppUsageSetting();
- To check notification bind listener access
import 'package:acl_sdk/helpers/permission_helper.dart';
...
await PermissionHelper.isNotificationListenerRunning();
- To open setting notification bind listener
import 'package:acl_sdk/helpers/permission_helper.dart';
...
await PermissionHelper.goToNotificationListenerSetting();
- For location access please use package
geolocator
(recommend) or some other plugin that you prefer
Issues & Contribute #
Please file any issues, bugs or feature requests as an issue on our GitHub page. Commercial support is available, you can contact us at thanh@unified-intelligence.io
Author #
This Geolocator plugin for Flutter is developed by Unified Intelligence