requestInstallPermission
Requests the install permission required to allow the app to install APK files from unknown sources. This method checks if the required permission has already been granted. If granted, the onGranted
callback is invoked. If not, the method triggers a permission request workflow via a dedicated PermissionActivity
, and the appropriate callback (onGranted
or onDenied
) is invoked based on the user's action.
Note: Ensure to add
Parameters
onGranted
A callback function that is invoked when the install permission is granted.
onDenied
A callback function that is invoked when the install permission is denied.