Compartilhar via


GenericDocument.Builder Constructors

Definition

Overloads

GenericDocument.Builder(GenericDocument)

Creates a new GenericDocument.Builder from the given GenericDocument.

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

Creates a new GenericDocument.Builder.

GenericDocument.Builder(GenericDocument)

Creates a new GenericDocument.Builder from the given GenericDocument.

[Android.Runtime.Register(".ctor", "(Landroid/app/appsearch/GenericDocument;)V", "", ApiSince=35)]
public Builder (Android.App.AppSearch.GenericDocument document);
[<Android.Runtime.Register(".ctor", "(Landroid/app/appsearch/GenericDocument;)V", "", ApiSince=35)>]
new Android.App.AppSearch.GenericDocument.Builder : Android.App.AppSearch.GenericDocument -> Android.App.AppSearch.GenericDocument.Builder

Parameters

document
GenericDocument
Attributes

Remarks

Creates a new GenericDocument.Builder from the given GenericDocument.

The GenericDocument is deep copied, i.e. changes to the new GenericDocument returned by this function will NOT affect the original GenericDocument.

Java documentation for android.app.appsearch.GenericDocument.Builder.GenericDocument$Builder(android.app.appsearch.GenericDocument).

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

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

Creates a new GenericDocument.Builder.

Document IDs are unique within a namespace.

The number of namespaces per app should be kept small for efficiency reasons.

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