AssociationRequest.Builder.SetExtraPermissions 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 set of extra permissions to be requested for this association.
[Android.Runtime.Register("setExtraPermissions", "(Ljava/util/Set;)Landroid/companion/AssociationRequest$Builder;", "", ApiSince=37)]
public Android.Companion.AssociationRequest.Builder SetExtraPermissions(System.Collections.Generic.ICollection<string> permissions);
[<Android.Runtime.Register("setExtraPermissions", "(Ljava/util/Set;)Landroid/companion/AssociationRequest$Builder;", "", ApiSince=37)>]
member this.SetExtraPermissions : System.Collections.Generic.ICollection<string> -> Android.Companion.AssociationRequest.Builder
Parameters
- permissions
- ICollection<String>
Returns
- Attributes
Remarks
Sets the set of extra permissions to be requested for this association.
These permissions will be granted to the companion app upon a successful association. Users can manually grant or revoke these permissions through the system settings. This API will not overwrite any permission status that a user has manually set.
When a device is disassociated, the system will attempt to revoke the permissions that were granted for it. This revocation will also not override any permissions that the user has manually set.
Android reference for android.companion.AssociationRequest.Builder.setExtraPermissions.
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.