Stay organized with collections
Save and categorize content based on your preferences.
SetBlobVisibilityRequest
open class SetBlobVisibilityRequest
Request to configure the visibility settings of blobs in AppSearch.
Used with AppSearchSession.setBlobVisibility
to specify visibility and display properties for blob namespaces. You can control which blob namespaces are displayed on system UI surfaces and which are accessible based on specific visibility configurations.
Summary
Public methods
getNamespacesNotDisplayedBySystem
open fun getNamespacesNotDisplayedBySystem(): MutableSet<String!>
Returns all the blob namespaces that are opted out of being displayed and visible on any system UI surface.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[],null,["# SetBlobVisibilityRequest\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [T Extensions 17](https://developer.android.com/sdkExtensions)\n\nSetBlobVisibilityRequest\n========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/app/appsearch/SetBlobVisibilityRequest \"View this page in Java\") \n\n```\nopen class SetBlobVisibilityRequest\n```\n\n|---|-----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.app.appsearch.SetBlobVisibilityRequest](#) |\n\nRequest to configure the visibility settings of blobs in AppSearch.\n\nUsed with [AppSearchSession.setBlobVisibility](/reference/kotlin/android/app/appsearch/AppSearchSession#setBlobVisibility(android.app.appsearch.SetBlobVisibilityRequest,%20java.util.concurrent.Executor,%20java.util.function.Consumer)) to specify visibility and display properties for blob namespaces. You can control which blob namespaces are displayed on system UI surfaces and which are accessible based on specific visibility configurations.\n\nSummary\n-------\n\n| Nested classes ||\n|---|----------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/app/appsearch/SetBlobVisibilityRequest.Builder) Builder for [SetBlobVisibilityRequest](#) objects. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\\\u003e | [getNamespacesNotDisplayedBySystem](#getNamespacesNotDisplayedBySystem())`()` Returns all the blob namespaces that are opted out of being displayed and visible on any system UI surface. |\n| open [MutableMap](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!, [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\\\u003c[SchemaVisibilityConfig](/reference/kotlin/android/app/appsearch/SchemaVisibilityConfig)!\\\u003e!\\\u003e | [getNamespacesVisibleToConfigs](#getNamespacesVisibleToConfigs())`()` Returns a mapping of blob namespaces to the set of [SchemaVisibilityConfig](/reference/kotlin/android/app/appsearch/SchemaVisibilityConfig)s that have access to that namespace. |\n\nPublic methods\n--------------\n\n### getNamespacesNotDisplayedBySystem\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [T Extensions 17](https://developer.android.com/sdkExtensions) \n\n```\nopen fun getNamespacesNotDisplayedBySystem(): MutableSet\u003cString!\u003e\n```\n\nReturns all the blob namespaces that are opted out of being displayed and visible on any system UI surface.\n\n| Return ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------|\n| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e | This value cannot be `null`. |\n\n### getNamespacesVisibleToConfigs\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [T Extensions 17](https://developer.android.com/sdkExtensions) \n\n```\nopen fun getNamespacesVisibleToConfigs(): MutableMap\u003cString!, MutableSet\u003cSchemaVisibilityConfig!\u003e!\u003e\n```\n\nReturns a mapping of blob namespaces to the set of [SchemaVisibilityConfig](/reference/kotlin/android/app/appsearch/SchemaVisibilityConfig)s that have access to that namespace.\n\nAll conditions in a single [SchemaVisibilityConfig](/reference/kotlin/android/app/appsearch/SchemaVisibilityConfig) are \"AND\" relationship. A caller must match all conditions to have the access. All [SchemaVisibilityConfig](/reference/kotlin/android/app/appsearch/SchemaVisibilityConfig)s in the set of a blob namespace are \"OR\" relationship. A caller could have access if they matches any [SchemaVisibilityConfig](/reference/kotlin/android/app/appsearch/SchemaVisibilityConfig) in the set.\n\nThis method provides the set of [SchemaVisibilityConfig](/reference/kotlin/android/app/appsearch/SchemaVisibilityConfig) for all blob namespaces.\n\n| Return ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------|\n| [MutableMap](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!,` `[MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\u003c[SchemaVisibilityConfig](/reference/kotlin/android/app/appsearch/SchemaVisibilityConfig)!\u003e!\u003e | This value cannot be `null`. |\n\n**See Also**\n\n- [android.app.appsearch.SetBlobVisibilityRequest.Builder#addNamespaceVisibleToConfig](/reference/kotlin/android/app/appsearch/SetBlobVisibilityRequest.Builder#addNamespaceVisibleToConfig(kotlin.String,%20android.app.appsearch.SchemaVisibilityConfig))"]]