onPermissionError property

void Function(PermissionType permissionType)? onPermissionError
final

Occurs when the SDK cannot get the device permission.

When the SDK fails to get the device permission, the SDK triggers this callback to report which device permission cannot be got.

  • permissionType The type of the device permission. See PermissionType.

Implementation

final void Function(PermissionType permissionType)? onPermissionError;