AppPermissionHandler(context: Context!)
Instantiates a new App permission handler. This constructor is deprecated because it might be easily misinterpreted that non-ui context can be passed as an argument which is not true.
context - Context!: activity context
IllegalArgumentException - when context is not Activity
AppPermissionHandler(activity: Activity!)
Instantiates a new App permission handler.
activity - Activity!: activity which is needed to display dialogs with permission requests