SetBlobVisibilityRequest.Builder.AddNamespaceVisibleToConfig Method

Definition

Specifies that blobs within the given namespace can be accessed by the caller if they meet the requirements defined in SchemaVisibilityConfig.

[Android.Runtime.Register("addNamespaceVisibleToConfig", "(Ljava/lang/String;Landroid/app/appsearch/SchemaVisibilityConfig;)Landroid/app/appsearch/SetBlobVisibilityRequest$Builder;", "", ApiSince=36)]
public Android.App.AppSearch.SetBlobVisibilityRequest.Builder AddNamespaceVisibleToConfig(string namespace, Android.App.AppSearch.SchemaVisibilityConfig visibilityConfig);
[<Android.Runtime.Register("addNamespaceVisibleToConfig", "(Ljava/lang/String;Landroid/app/appsearch/SchemaVisibilityConfig;)Landroid/app/appsearch/SetBlobVisibilityRequest$Builder;", "", ApiSince=36)>]
member this.AddNamespaceVisibleToConfig : string * Android.App.AppSearch.SchemaVisibilityConfig -> Android.App.AppSearch.SetBlobVisibilityRequest.Builder

Parameters

namespace
String

The blob namespace to set visibility for. This value cannot be null.

visibilityConfig
SchemaVisibilityConfig

The config specifying visibility settings. This value cannot be null.

Returns

Attributes

Remarks

Specifies that blobs within the given namespace can be accessed by the caller if they meet the requirements defined in SchemaVisibilityConfig. The requirements in each SchemaVisibilityConfig have an "AND" relationship, meaning that all conditions within a configuration must be met for access. For instance, the caller may need specific permissions and belong to a specific package. Repeated calls to this method can add multiple SchemaVisibilityConfigs to a namespace. The caller will have access if they match any of the configurations added, so the configurations form an "OR" relationship.

Android reference for android.app.appsearch.SetBlobVisibilityRequest.Builder.addNamespaceVisibleToConfig.

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