Language

SetSchemaRequest.Builder.AddSchemaTypeVisibleToConfig Method

Definition

Sets the documents from the provided schemaType can be read by the caller if they match the ALL visibility requirements set in SchemaVisibilityConfig.

[Android.Runtime.Register("addSchemaTypeVisibleToConfig", "(Ljava/lang/String;Landroid/app/appsearch/SchemaVisibilityConfig;)Landroid/app/appsearch/SetSchemaRequest$Builder;", "", ApiSince=35)]
public Android.App.AppSearch.SetSchemaRequest.Builder AddSchemaTypeVisibleToConfig(string schemaType, Android.App.AppSearch.SchemaVisibilityConfig schemaVisibilityConfig);
[<Android.Runtime.Register("addSchemaTypeVisibleToConfig", "(Ljava/lang/String;Landroid/app/appsearch/SchemaVisibilityConfig;)Landroid/app/appsearch/SetSchemaRequest$Builder;", "", ApiSince=35)>]
member this.AddSchemaTypeVisibleToConfig : string * Android.App.AppSearch.SchemaVisibilityConfig -> Android.App.AppSearch.SetSchemaRequest.Builder

Parameters

schemaType
String

The schema type to set visibility on. This value cannot be null.

schemaVisibilityConfig
SchemaVisibilityConfig

The SchemaVisibilityConfig holds all requirements that a call must to match to access the schema. This value cannot be null.

Returns

Attributes

Remarks

Sets the documents from the provided schemaType can be read by the caller if they match the ALL visibility requirements set in SchemaVisibilityConfig. The requirements in a SchemaVisibilityConfig is "AND" relationship. A caller must match ALL requirements to access the schema. For example, a caller must hold required permissions AND it is a specified package. You can call this method repeatedly to add multiple SchemaVisibilityConfig s, and the querier will have access if they match ANY of the SchemaVisibilityConfig.

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

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