Language

ContentCaptureSession.Version2 フィールド

定義

注意事項

This constant will be removed in the future version. Use Android.Views.ContentCaptures.ContentCaptureSessionVersion enum directly instead of this field.

コンテンツ キャプチャ バージョン 2。

[Android.Runtime.Register("VERSION_2", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.ContentCaptures.ContentCaptureSessionVersion enum directly instead of this field.", true)]
public const Android.Views.ContentCaptures.ContentCaptureSessionVersion Version2 = 2;
[<Android.Runtime.Register("VERSION_2", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.ContentCaptures.ContentCaptureSessionVersion enum directly instead of this field.", true)>]
val mutable Version2 : Android.Views.ContentCaptures.ContentCaptureSessionVersion

フィールド値

Value = 2
属性

注釈

コンテンツ キャプチャ バージョン 2。

2 番目以降のコンテンツ キャプチャでは、ビュー階層をアプリケーションからシステム インテリジェンス サービスに渡すために、より重点的で無駄のないアプローチが採用されています。 必要な情報は、ほとんどの場合、画面上のテキストと、これらのテキスト ノードの境界ボックスに限定されます。 このバージョンのコンテンツ キャプチャは、リソースの使用効率も大幅に向上し、さまざまなシステム インテリジェンス サービスで使用する既定のバージョンにすることをお勧めします。

ContentCaptureVersionによってこのバージョンが返された場合、開発者はバージョン 2 API を使用してノードのライフサイクルとプロパティの更新を報告する必要があります。 バージョン 1 の通知方法と Flush() では、セッションがバージョン 2 用に構成されている場合、イベントは報告されません。 NewViewStructure(View) NewVirtualViewStructure(AutofillId, Int64)は構造を作成します。

コンテンツ キャプチャ バージョン 2 の API には、 NotifyNodeAppearedOrChanged(AutofillId, ContentCaptureNodeProperties) と NotifyNodeDisappeared(AutofillId)が含まれます。

android.view.contentcapture.ContentCaptureSession.VERSION_2の Android リファレンス。

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

適用対象