VBFPermissionHelper class

FileName permission_request

@author: wzp_vicky @time: 2023年10月30日23:12:42 @version: V1.1 @description: 这个类主要是权限申请辅助类,第一版针对ios14+的相册权限做一个辅助 方法命名规则:request权限首字母Permission:requestCPPermission(camera+photos)

@author: wzp_vicky @time: 2024年11月26日17:23:43 @description: 权限申请,细分了相机和相册权限 单独出来相机、相册、和 相机相册一起 ,这个呢加入了ios的部分权限下不申请相机权限

@author: wzp_vicky @time: 2024年11月28日20:08:08 @description: 针对组件库中的选择图片组件,为了不在组件库的pub这里增加requestPermission2SelectPic

Constructors

VBFPermissionHelper.new()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

isNeedCamera() → dynamic
requestCPPermission(BuildContext context, {bool needCamera = true}) → dynamic
requestPermission2SelectPic(BuildContext context, VoidCallback onSuccess, {bool isNeedCamera = true, String language = "zh", VoidCallback? onFail}) → dynamic
requestStoragePermission(BuildContext context) → dynamic