CompanionDeviceManager.IsPermissionTransferUserConsented(Int32) 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.
Return the current state of consent for permission transfer for the association.
[Android.Runtime.Register("isPermissionTransferUserConsented", "(I)Z", "", ApiSince=35)]
public bool IsPermissionTransferUserConsented (int associationId);
[<Android.Runtime.Register("isPermissionTransferUserConsented", "(I)Z", "", ApiSince=35)>]
member this.IsPermissionTransferUserConsented : int -> bool
Parameters
- associationId
- Int32
The unique AssociationInfo#getId ID
assigned to the association
of the companion device recorded by CompanionDeviceManager
Returns
True if the user has consented to the permission transfer, or false otherwise.
- Attributes
Remarks
Return the current state of consent for permission transfer for the association. True if the user has allowed permission transfer for the association, false otherwise.
Note: The initial user consent is collected via #buildPermissionTransferUserConsentIntent(int) a permission transfer user consent dialog
. After the user has made their initial selection, they can toggle the permission transfer feature in the settings. This method always returns the state of the toggle setting.
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.