Language

SetSchemaRequest.Builder.SetSchemaTypeDisplayedBySystem Method

Definition

Sets whether or not documents from the provided schemaType will be displayed and visible on any system UI surface.

[Android.Runtime.Register("setSchemaTypeDisplayedBySystem", "(Ljava/lang/String;Z)Landroid/app/appsearch/SetSchemaRequest$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SetSchemaRequest.Builder SetSchemaTypeDisplayedBySystem(string schemaType, bool displayed);
[<Android.Runtime.Register("setSchemaTypeDisplayedBySystem", "(Ljava/lang/String;Z)Landroid/app/appsearch/SetSchemaRequest$Builder;", "", ApiSince=31)>]
member this.SetSchemaTypeDisplayedBySystem : string * bool -> Android.App.AppSearch.SetSchemaRequest.Builder

Parameters

schemaType
String

The name of an AppSearchSchema within the same SetSchemaRequest, which will be configured. This value cannot be null.

displayed
Boolean

Whether documents of this type will be displayed on system UI surfaces.

Returns

Attributes

Remarks

Sets whether or not documents from the provided schemaType will be displayed and visible on any system UI surface. This setting applies to the provided schemaType only, and does not persist across AppSearchSession.setSchema calls. The default behavior, if this method is not called, is to allow types to be displayed on system UI surfaces.

Android reference for android.app.appsearch.SetSchemaRequest.Builder.setSchemaTypeDisplayedBySystem.

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