View.ContentCaptureSession プロパティ

定義

コンテンツ キャプチャ イベントの通知に使用されるセッションを取得します。 または、このビューに関連付けられている (省略可能な) ContentCaptureSession を設定します。

public Android.Views.ContentCaptures.ContentCaptureSession? ContentCaptureSession { [Android.Runtime.Register("getContentCaptureSession", "()Landroid/view/contentcapture/ContentCaptureSession;", "", ApiSince=29)] get; [Android.Runtime.Register("setContentCaptureSession", "(Landroid/view/contentcapture/ContentCaptureSession;)V", "GetSetContentCaptureSession_Landroid_view_contentcapture_ContentCaptureSession_Handler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getContentCaptureSession", "()Landroid/view/contentcapture/ContentCaptureSession;", "", ApiSince=29)>]
[<set: Android.Runtime.Register("setContentCaptureSession", "(Landroid/view/contentcapture/ContentCaptureSession;)V", "GetSetContentCaptureSession_Landroid_view_contentcapture_ContentCaptureSession_Handler", ApiSince=29)>]
member this.ContentCaptureSession : Android.Views.ContentCaptures.ContentCaptureSession with get, set

プロパティ値

セッションは、 #setContentCaptureSession(ContentCaptureSession)によって明示的に設定され、先祖によって継承されます。このビューでコンテンツ キャプチャが無効になっている場合は、既定のセッションまたは null

属性

注釈

プロパティ getter のドキュメント:

コンテンツ キャプチャ イベントの通知に使用されるセッションを取得します。

Javaドキュメント。

プロパティ セッターのドキュメント:

このビューに関連付けられている (省略可能な) ContentCaptureSession を設定します。

このメソッドは、このビューまたはそのビュー階層に関連付けられているコンテンツ キャプチャ イベントに ContentCaptureContext を関連付ける必要がある場合に呼び出す必要があります ( ViewGroupの場合)。

たとえば、アクティビティが Web ドメインに関連付けられている場合は、まずメイン DOM のコンテキストを設定する必要があります。

ContentCaptureSession mainSession = rootView.getContentCaptureSession();
              mainSession.setContentCaptureContext(ContentCaptureContext.forLocusId(Uri.parse(myUrl));

その後、ページに IFRAMEがある場合は、新しいセッションを作成します。

ContentCaptureSession iframeSession = mainSession.createContentCaptureSession(
                  ContentCaptureContext.forLocusId(Uri.parse(iframeUrl)));
              iframeView.setContentCaptureSession(iframeSession);

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象