You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
517 B
24 lines
517 B
1 year ago
|
//
|
||
|
// SGPermissionCamera.h
|
||
|
// SGQRCodeExample
|
||
|
//
|
||
|
// Created by kingsic on 2022/7/8.
|
||
|
// Copyright © 2022 kingsic. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import "SGPermission.h"
|
||
|
|
||
|
@class SGPermissionCamera;
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
typedef void(^SGPermissionCameraBlock)(SGPermissionCamera *camera, SGPermissionStatus status);
|
||
|
|
||
|
@interface SGPermissionCamera : NSObject
|
||
|
+ (void)camera:(SGPermissionCameraBlock)block;
|
||
|
+ (void)request:(void (^)(BOOL granted))handler;
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|