LMMediaPermissionChecker Class Reference
Inherits from | NSObject |
---|---|
Declared in | LMMediaPermissionChecker.h LMMediaPermissionChecker.m |
+ isCameraNotDetermined
返回用户是否请求过相机权限
+ (BOOL)isCameraNotDetermined
Declared In
LMMediaPermissionChecker.m
+ requestCameraBySystemDialog:
请求系统相机权限
+ (void)requestCameraBySystemDialog:(LMMediaAuthResult)completionHandler
Declared In
LMMediaPermissionChecker.m
+ isMicrophoneNotDetermined
返回用户是否请求过麦克风权限
+ (BOOL)isMicrophoneNotDetermined
Declared In
LMMediaPermissionChecker.m
+ requestMicrophoneBySystemDialog:
请求系统麦克风权限
+ (void)requestMicrophoneBySystemDialog:(LMMediaAuthResult)completionHandler
Declared In
LMMediaPermissionChecker.m
+ accessOfMicrophone
是否已有请求到系统麦克风权限
+ (BOOL)accessOfMicrophone
Declared In
LMMediaPermissionChecker.m
+ isPhotoLibraryNotDetermined
返回用户是否请求过相册权限
+ (BOOL)isPhotoLibraryNotDetermined
Declared In
LMMediaPermissionChecker.m
+ requestPhotoLibraryBySystemDialog:
请求系统相册权限
+ (void)requestPhotoLibraryBySystemDialog:(LMMediaAuthResult)completionHandler
Declared In
LMMediaPermissionChecker.m
+ requestBroadcastPermission:
开始请求开播权限*****
+ (void)requestBroadcastPermission:(LMMediaAuthResult)completionHandler
Declared In
LMMediaPermissionChecker.m
+ requestShortVideoPermission:
拍摄短视频权限请求流程
+ (void)requestShortVideoPermission:(LMMediaAuthResult)completionHandler
Parameters
completionHandler |
完成回调,权限请求成功,参数为YES,失败为NO |
---|
Declared In
LMMediaPermissionChecker.h
+ requestBroadcastPermission:completionHandler:
开播权限请求流程,包含短视频
+ (void)requestBroadcastPermission:(BOOL)isShortVideo completionHandler:(LMMediaAuthResult)completionHandler
Parameters
isShortVideo |
是否为短视频 |
---|---|
completionHandler |
完成回调,权限请求成功,参数为YES,失败为NO |
Declared In
LMMediaPermissionChecker.m
+ checkMediaPermissionStatus:
结束请求开播权限*****
+ (BOOL)checkMediaPermissionStatus:(void ( ^ ) ( LMNeedPermissionType ))permissionDenied
Declared In
LMMediaPermissionChecker.m
+ checkShortVideoPermissionStatus:
检测照相机、麦克风和相册权限状态
+ (BOOL)checkShortVideoPermissionStatus:(void ( ^ ) ( LMNeedPermissionType ))permissionDenied
Parameters
permissionDenied |
状态回调 |
---|
Return Value
返回是否需要权限
Declared In
LMMediaPermissionChecker.h