Language

SearchSpec.Builder.AddProjection(String, ICollection<String>) Method

Definition

Sets the projection paths for the specified schema type.

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

Parameters

schema
String

The schema type name, or * for types without their own projection. This value cannot be null.

propertyPaths
ICollection<String>

The property paths to retrieve. Neither the collection nor its entries can be null.

Returns

This builder instance.

Attributes

Remarks

Sets the projection paths for the specified schema type. A later call for the same type replaces its previous paths. Only the specified properties are retrieved for results of that type. If a specified property path isn't present in a result, it is ignored for that result. Property paths cannot be null.

Android reference for android.app.appsearch.SearchSpec.Builder.addProjection.

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