Språk

AppSearchSchema.DocumentPropertyConfig.Builder(String, String) Constructor

Definition

Creates a new DocumentPropertyConfig.Builder.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=31)]
public Builder(string propertyName, string schemaType);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=31)>]
new Android.App.AppSearch.AppSearchSchema.DocumentPropertyConfig.Builder : string * string -> Android.App.AppSearch.AppSearchSchema.DocumentPropertyConfig.Builder

Parameters

propertyName
String

The logical name of the property in the schema, which will be used as the key for this property in GenericDocument.Builder.setPropertyDocument. This value cannot be null.

schemaType
String

The schema type declared for this property. Documents can have this type or a subtype when polymorphism is supported. This value cannot be null.

Attributes

Remarks

Creates a new DocumentPropertyConfig.Builder.

Android reference for android.app.appsearch.AppSearchSchema.DocumentPropertyConfig.Builder.Builder.

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