Share via


ContentCaptureContext.Builder(LocusId) Constructor

Definition

Creates a new builder.

[Android.Runtime.Register(".ctor", "(Landroid/content/LocusId;)V", "", ApiSince=29)]
public Builder (Android.Content.LocusId id);
[<Android.Runtime.Register(".ctor", "(Landroid/content/LocusId;)V", "", ApiSince=29)>]
new Android.Views.ContentCaptures.ContentCaptureContext.Builder : Android.Content.LocusId -> Android.Views.ContentCaptures.ContentCaptureContext.Builder

Parameters

id
LocusId

id associated with this context.

Attributes

Remarks

Creates a new builder.

The context must have an id, which is usually one of the following:

<ul> <li>A URL representing a web page (or IFRAME) that's being rendered by the activity (See View#setContentCaptureSession(ContentCaptureSession) for an example). <li>A unique identifier of the application state (for example, a conversation between 2 users in a chat app). </ul>

See ContentCaptureManager for more info about the content capture context.

Java documentation for android.view.contentcapture.ContentCaptureContext.Builder.ContentCaptureContext$Builder(android.content.LocusId).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to