DataConsent class Objects

{@image } The data consent objects request permissions across operating systems on your behalf, and keep them managed. However, you must still go into the native codebase for Android / iOS and manually input what permissions you will be asking for ahead of time, to avoid a crash. Read more about this on the permission handler documentation under setup here: https://pub.dev/packages/permission_handler A class that manages Data consent objects

Constructors

DataConsent()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bluetoothAccessPermission(String permissionUsage) DataPermissionObject
A DPO that represents bluetooth access.
cameraAccessPermission(String permissionUsage) DataPermissionObject
A DPO that represents camera access.
consentHandler(dataAccess item, VoidCallback onConsent, VoidCallback onReject) Future<void>
A function that checks permissions on behalf of the user, and runs code if enabled, shows alert controller to user if not enabled.
emailSubscriptionPermission(String permissionUsage, VoidCallback onPermissionOptIn) DataPermissionObject
A DPO that represents email subscription access.
healthInformationAccessPermission(String permissionUsage) DataPermissionObject
A DPO that represents health information access.
locationAccessPermission(String permissionUsage) DataPermissionObject
A DPO that represents location access.
mediaGalleryPermission(String permissionUsage) DataPermissionObject
A DPO that represents sensor data access.
microphoneAccessPermission(String permissionUsage) DataPermissionObject
A DPO that represents microphone access.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pushNotificationsAccessPermission(String permissionUsage) DataPermissionObject
A DPO that represents push notification access.
sensorsPermission(String permissionUsage) DataPermissionObject
A DPO that represents sensor data access.
showConsentErrorMessage(String permissionName, [String? error]) → void
A function that sends an error message to the user, telling them something cannot be done because they have not enabled permissions.
storagePermission(String permissionUsage) DataPermissionObject
A DPO that represents sensor data access.
toString() String
A string representation of this object.
inherited
trackingAccessPermission(String permissionUsage) DataPermissionObject
A DPO that represents tracking access.

Operators

operator ==(Object other) bool
The equality operator.
inherited