private void getUnusedAppRestrictionsStatus(CallbackContext callbackContext) {
        ListenableFuture<Integer> listenableFuture = PackageManagerCompat.getUnusedAppRestrictionsStatus(getContext());
        listenableFuture.addListener(new Runnable() {
            public void run() {
                try {
                    callbackContext.success(listenableFuture.get());
                } catch (Exception exception) {
                    callbackContext.success(UnusedAppRestrictionsConstants.ERROR);
                }
            }
          }, ContextCompat.getMainExecutor(getContext()));
    }
Returns the status of Unused App Restrictions, which was introduced in Android 11 and
backported to Android 6 to 10 through the Google Play Store.
@return int @see UnusedAppRestrictionsConstants
@see https://developer.android.com/topic/performance/app-hibernation
src/android/LocalNotification.java