Karumi / Dexter

Android library that simplifies the process of requesting permissions at runtime.
http://karumi.com
Apache License 2.0
5.23k stars 671 forks source link

Support for MediaProjection permission request. #225

Open forlayo opened 5 years ago

forlayo commented 5 years ago

Expected behaviour

In order to use MediaProjection you need to request for a permission in this way:

mMediaProjectionManager = (MediaProjectionManager) activity.getSystemService(Context.MEDIA_PROJECTION_SERVICE);
startActivityForResult(
                    mMediaProjectionManager.createScreenCaptureIntent(),
                    REQUEST_MEDIA_PROJECTION);

And then you're going to receive at onActivityResult(int requestCode, int resultCode, Intent data)

The "data" you need to start mediaprojection; it would be great if this fantastic library add support for this, specially while using it from C++ side, where makes the things a lot easier.

Actual behaviour

No way to do this.

Steps to reproduce

No way to do this.

Version of the library

5.0.0