unused_app_restrictions 0.0.2 copy "unused_app_restrictions: ^0.0.2" to clipboard
unused_app_restrictions: ^0.0.2 copied to clipboard

PlatformAndroid

returns only 'Pause app activity if unused' status

This library checks if "Pause app activity if unused" is turned on or off in the app settings which is only available on android.

reference

https://developer.android.com/topic/performance/app-hibernation

how to use

TextButton(
    onPressed: () async {
        final bool isEnabled = await UnusedAppRestrictions.getStatus();
        print(isEnabled);
    },
    child: const Text('get status'),
),
2
likes
140
points
231
downloads

Publisher

unverified uploader

Weekly Downloads

returns only 'Pause app activity if unused' status

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on unused_app_restrictions