diff --git a/media/java/android/media/projection/MediaProjectionManager.java b/media/java/android/media/projection/MediaProjectionManager.java index a4215e68bfef8..d60dfd9311eb7 100644 --- a/media/java/android/media/projection/MediaProjectionManager.java +++ b/media/java/android/media/projection/MediaProjectionManager.java @@ -74,8 +74,16 @@ public final class MediaProjectionManager { * Returns an {@link Intent} that must be passed to * {@link Activity#startActivityForResult(Intent, int)} (or similar) in order to start screen * capture. The activity will prompt the user whether to allow screen capture. The result of - * this activity (received by overriding {@link Activity#onActivityResult(int, int, Intent)}) + * this activity (received by overriding {@link Activity#onActivityResult(int, int, Intent)} * should be passed to {@link #getMediaProjection(int, Intent)}. + *
+ * Identical to calling {@link #createScreenCaptureIntent(MediaProjectionConfig)} with + * a {@link MediaProjectionConfig#createConfigForUserChoice()}. + *
+ *+ * Should be used instead of {@link #createScreenCaptureIntent(MediaProjectionConfig)} when the + * calling app does not want to customize the activity shown to the user. + *
*/ @NonNull public Intent createScreenCaptureIntent() { @@ -99,20 +107,25 @@ public final class MediaProjectionManager { * ** If {@link MediaProjectionConfig} was created from: - *
+ * Should be used instead of {@link #createScreenCaptureIntent()} when the calling app wants to + * customize the activity shown to the user. + *
* * @param config Customization for the {@link MediaProjection} that this {@link Intent} requests * the user's consent for.