GenericDocument.Builder.SetSchemaType(String) Method

Definition

Sets the schema type of this document, changing the value provided in the constructor.

[Android.Runtime.Register("setSchemaType", "(Ljava/lang/String;)Landroid/app/appsearch/GenericDocument$Builder;", "GetSetSchemaType_Ljava_lang_String_Handler", ApiSince=35)]
public virtual Java.Lang.Object SetSchemaType(string schemaType);
[<Android.Runtime.Register("setSchemaType", "(Ljava/lang/String;)Landroid/app/appsearch/GenericDocument$Builder;", "GetSetSchemaType_Ljava_lang_String_Handler", ApiSince=35)>]
abstract member SetSchemaType : string -> Java.Lang.Object
override this.SetSchemaType : string -> Java.Lang.Object

Parameters

schemaType
String

Returns

Attributes

Remarks

Sets the schema type of this document, changing the value provided in the constructor. To successfully index a document, the schema type must match the name of an AppSearchSchema object previously provided to AppSearchSession.setSchema.

Android reference for android.app.appsearch.GenericDocument.Builder.setSchemaType.

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