SearchResult.TextMatchInfo.SnippetRange Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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=36)] get; }
[<get: Android.Runtime.Register("getSnippetRange", "()Landroid/app/appsearch/SearchResult$MatchRange;", "", ApiSince=36)>]
member this.SnippetRange : Android.App.AppSearch.SearchResult.MatchRange
Property Value
The snippet range stored for this text match.
- Attributes
Remarks
Gets the snippet MatchRange corresponding to the given entry. For matches returned by a search, the snippet is populated only when SetMaxSnippetSize(Int32) sets maxSnippetSize to a value greater than 0. Class example 1: this returns [26, 33]. Class example 2: for the first TextMatchInfo, this returns [0, 9] and, for the second TextMatchInfo, this returns [0, 9].
Android reference for android.app.appsearch.SearchResult.TextMatchInfo.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.