GetSchemaResponse.Builder.SetSchemaTypeVisibleToConfigs Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the visibility configurations reported for the specified schema type.
[Android.Runtime.Register("setSchemaTypeVisibleToConfigs", "(Ljava/lang/String;Ljava/util/Set;)Landroid/app/appsearch/GetSchemaResponse$Builder;", "", ApiSince=35)]
public Android.App.AppSearch.GetSchemaResponse.Builder SetSchemaTypeVisibleToConfigs(string schemaType, System.Collections.Generic.ICollection<Android.App.AppSearch.SchemaVisibilityConfig> visibleToConfigs);
[<Android.Runtime.Register("setSchemaTypeVisibleToConfigs", "(Ljava/lang/String;Ljava/util/Set;)Landroid/app/appsearch/GetSchemaResponse$Builder;", "", ApiSince=35)>]
member this.SetSchemaTypeVisibleToConfigs : string * System.Collections.Generic.ICollection<Android.App.AppSearch.SchemaVisibilityConfig> -> Android.App.AppSearch.GetSchemaResponse.Builder
Parameters
- schemaType
- String
The schema type to set visibility on. This value cannot be null.
- visibleToConfigs
- ICollection<SchemaVisibilityConfig>
The SchemaVisibilityConfig objects that describe the visibility requirements for the schema. This value cannot be null.
Returns
This builder instance.
- Attributes
Remarks
Sets the visibility configurations reported for the specified schema type. To qualify through these configurations, a caller must meet all configured requirements in at least one configuration, such as holding a required permission and being an allowed package. An empty configuration does not grant access, and enterprise searches can have additional requirements. For example, if the set contains {{PackageA and Permission1}, {PackageB and Permission2}}, a caller from PackageA meets the first configuration's package and permission requirements with Permission1 but not with Permission2 alone. A caller from PackageB meets the second configuration's requirements with Permission2. A caller from PackageC meets neither configuration's package requirement.
Android reference for android.app.appsearch.GetSchemaResponse.Builder.setSchemaTypeVisibleToConfigs.
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.