Fixed javadoc for View.setContentCaptureSession().
Test: m -j ds-docs Fixes: 132724201 Change-Id: I1bb2fbd7a085ab9816f71f8433feafa1f63a28ae (cherry picked from commit 44bd15ad403855412ea5474b576f8da981d8f573)
This commit is contained in:
@@ -9527,18 +9527,15 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
* <pre>
|
||||
* ContentCaptureSession mainSession = rootView.getContentCaptureSession();
|
||||
* mainSession.setContentCaptureContext(ContentCaptureContext.forLocusId(Uri.parse(myUrl));
|
||||
* <pre>
|
||||
* </pre>
|
||||
*
|
||||
* <p>Then if the page had an {@code IFRAME}, you would create a new session for it:
|
||||
*
|
||||
* <p>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:
|
||||
*
|
||||
* <pre>
|
||||
* ContentCaptureSession iframeSession = mainSession.createContentCaptureSession(
|
||||
* ContentCaptureContext.forLocusId(Uri.parse(iframeUrl)));
|
||||
* iframeView.setContentCaptureSession(iframeSession);
|
||||
* <pre>
|
||||
* </pre>
|
||||
*
|
||||
* @param contentCaptureSession a session created by
|
||||
* {@link ContentCaptureSession#createContentCaptureSession(
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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}.
|
||||
*
|
||||
* <p>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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user