GenericDocument.Builder.SetNamespace(String) Method

Definition

Sets the app-defined namespace this document resides in, changing the value provided in the constructor.

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

Parameters

namespace
String

Returns

Attributes

Remarks

Sets the app-defined namespace this document resides in, changing the value provided in the constructor. No special values are reserved or understood by the infrastructure. Document IDs are unique within a namespace. The number of namespaces per app should be kept small for efficiency reasons.

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

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