SchemaVisibilityConfig.Builder.AddRequiredPermissions 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.
Adds a set of required Android Manifest.permission combination a package needs to hold to access the schema this SchemaVisibilityConfig represents.
[Android.Runtime.Register("addRequiredPermissions", "(Ljava/util/Set;)Landroid/app/appsearch/SchemaVisibilityConfig$Builder;", "", ApiSince=35)]
public Android.App.AppSearch.SchemaVisibilityConfig.Builder AddRequiredPermissions(System.Collections.Generic.ICollection<Java.Lang.Integer> visibleToPermissions);
[<Android.Runtime.Register("addRequiredPermissions", "(Ljava/util/Set;)Landroid/app/appsearch/SchemaVisibilityConfig$Builder;", "", ApiSince=35)>]
member this.AddRequiredPermissions : System.Collections.Generic.ICollection<Java.Lang.Integer> -> Android.App.AppSearch.SchemaVisibilityConfig.Builder
Parameters
- visibleToPermissions
- ICollection<Integer>
Returns
- Attributes
Remarks
Adds a set of required Android Manifest.permission combination a package needs to hold to access the schema this SchemaVisibilityConfig represents. If the querier holds ALL of the required permissions in this combination, they will have access to read GenericDocument objects of the given schema type. You can call this method repeatedly to add multiple permission combinations, and the querier will have access if they holds ANY of the combinations. Merged Set available from SchemaVisibilityConfig.getRequiredPermissions().
Android reference for android.app.appsearch.SchemaVisibilityConfig.Builder.addRequiredPermissions.
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.