Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc7d8ae3 authored by Jing Ji's avatar Jing Ji Committed by Automerger Merge Worker
Browse files

Merge "Update docs for MediaProjectionManager.getMediaProjection" into rvc-dev...

Merge "Update docs for MediaProjectionManager.getMediaProjection" into rvc-dev am: 322b748b am: e9609760

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11683095

Change-Id: Iba605bcfd5e9a7c6157c87b914e11b58c45e712a
parents 8563378f e9609760
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -90,6 +90,17 @@ public final class MediaProjectionManager {
     * projection is stopped. This allows for user controls to be displayed on top of the screen
     * being captured.
     *
     * <p>
     * Apps targeting SDK version {@link android.os.Build.VERSION_CODES#Q} or later should specify
     * the foreground service type using the attribute {@link android.R.attr#foregroundServiceType}
     * in the service element of the app's manifest file.
     * The {@link android.content.pm.ServiceInfo#FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION} attribute
     * should be specified.
     * </p>
     *
     * @see <a href="https://developer.android.com/preview/privacy/foreground-service-types">
     * Foregroud Service Types</a>
     *
     * @param resultCode The result code from {@link android.app.Activity#onActivityResult(int,
     * int, android.content.Intent)}
     * @param resultData The resulting data from {@link android.app.Activity#onActivityResult(int,