diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index a44495345762f..3590c3422d467 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -9527,18 +9527,15 @@ public class View implements Drawable.Callback, KeyEvent.Callback, *
* ContentCaptureSession mainSession = rootView.getContentCaptureSession();
* mainSession.setContentCaptureContext(ContentCaptureContext.forLocusId(Uri.parse(myUrl));
- *
+ *
*
* Then if the page had an {@code IFRAME}, you would create a new session for it:
*
- *
For example, if your activity is associated with a web domain, you could create a session
- * {@code onCreate()} and associate it with the root view of the activity:
- *
*
* ContentCaptureSession iframeSession = mainSession.createContentCaptureSession(
* ContentCaptureContext.forLocusId(Uri.parse(iframeUrl)));
* iframeView.setContentCaptureSession(iframeSession);
- *
+ *
*
* @param contentCaptureSession a session created by
* {@link ContentCaptureSession#createContentCaptureSession(
diff --git a/core/java/android/view/contentcapture/ContentCaptureSession.java b/core/java/android/view/contentcapture/ContentCaptureSession.java
index f9f26251b15ef..975d481ef8c2b 100644
--- a/core/java/android/view/contentcapture/ContentCaptureSession.java
+++ b/core/java/android/view/contentcapture/ContentCaptureSession.java
@@ -41,8 +41,8 @@ import java.util.ArrayList;
import java.util.Random;
/**
- * Session used to notify a system-provided Content Capture service about events associated with
- * views.
+ * Session used when the Android a system-provided content capture service
+ * about events associated with views.
*/
public abstract class ContentCaptureSession implements AutoCloseable {
diff --git a/core/java/android/view/contentcapture/DataRemovalRequest.java b/core/java/android/view/contentcapture/DataRemovalRequest.java
index 8deabe1b284b4..f403dacee13ef 100644
--- a/core/java/android/view/contentcapture/DataRemovalRequest.java
+++ b/core/java/android/view/contentcapture/DataRemovalRequest.java
@@ -31,8 +31,11 @@ import java.util.ArrayList;
import java.util.List;
/**
- * Class used by apps to request the Content Capture service to remove data associated with
+ * Class used by apps to request the content capture service to remove data associated with
* {@link LocusId LocusIds}.
+ *
+ * An app which has tagged data with a LocusId can therefore delete them later. This is intended
+ * to let apps propagate deletions of user data into the operating system.
*/
public final class DataRemovalRequest implements Parcelable {