Language

SearchResult.MatchInfo.SnippetRange Property

Definition

Gets the snippet MatchRange corresponding to the given entry.

public Android.App.AppSearch.SearchResult.MatchRange SnippetRange { [Android.Runtime.Register("getSnippetRange", "()Landroid/app/appsearch/SearchResult$MatchRange;", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getSnippetRange", "()Landroid/app/appsearch/SearchResult$MatchRange;", "", ApiSince=31)>]
member this.SnippetRange : Android.App.AppSearch.SearchResult.MatchRange

Property Value

Attributes

Remarks

Gets the snippet MatchRange corresponding to the given entry. Returns [0,0] if the match is not text-based. Only populated when set maxSnippetSize > 0 in SearchSpec.Builder.setMaxSnippetSize.

Android reference for android.app.appsearch.SearchResult.MatchInfo.getSnippetRange.

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