Share via


GenericDocument.Builder Constructors

Definition

Overloads

GenericDocument.Builder(IntPtr, JniHandleOwnership)
GenericDocument.Builder(String, String, String)

Creates a new GenericDocument.Builder.

GenericDocument.Builder(IntPtr, JniHandleOwnership)

protected Builder (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.AppSearch.GenericDocument.Builder : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.AppSearch.GenericDocument.Builder

Parameters

javaReference
IntPtr

nativeint

Applies to

GenericDocument.Builder(String, String, String)

Creates a new GenericDocument.Builder.

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

Parameters

namespace
String

the namespace to set for the GenericDocument.

id
String

the unique identifier for the GenericDocument in its namespace.

schemaType
String

the AppSearchSchema type of the GenericDocument. The provided schemaType must be defined using AppSearchSession#setSchema prior to inserting a document of this schemaType into the AppSearch index using AppSearchSession#put. Otherwise, the document will be rejected by AppSearchSession#put with result code AppSearchResult#RESULT_NOT_FOUND.

Attributes

Remarks

Java documentation for android.app.appsearch.GenericDocument.Builder.GenericDocument$Builder(java.lang.String, java.lang.String, java.lang.String).

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