Language

SearchSuggestionSpec.Builder.AddFilterProperties Method

Definition

Adds property paths for the specified type to the suggestion property filter.

[Android.Runtime.Register("addFilterProperties", "(Ljava/lang/String;Ljava/util/Collection;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=35)]
public Android.App.AppSearch.SearchSuggestionSpec.Builder AddFilterProperties(string schema, System.Collections.Generic.ICollection<string> propertyPaths);
[<Android.Runtime.Register("addFilterProperties", "(Ljava/lang/String;Ljava/util/Collection;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=35)>]
member this.AddFilterProperties : string * System.Collections.Generic.ICollection<string> -> Android.App.AppSearch.SearchSuggestionSpec.Builder

Parameters

schema
String

The name of the schema type containing the target properties. This value cannot be null.

propertyPaths
ICollection<String>

The String version of PropertyPath. A dot-delimited sequence of property names identifying a property to search. This value cannot be null.

Returns

This builder instance.

Attributes

Remarks

Adds property paths for the specified type to the suggestion property filter. Only search for suggestions from the specified properties. Property paths cannot be null. A later call for the same schema replaces its previous property paths. Example properties: 'body', 'sender.name', 'sender.emailaddress', etc.

Android reference for android.app.appsearch.SearchSuggestionSpec.Builder.addFilterProperties.

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