2014 snapchat source code
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.
 
 
 

31 lines
830 B

//
// SCCaptureDeviceAuthorizationChecker.h
// Snapchat
//
// Created by Sun Lei on 15/03/2018.
//
@class SCQueuePerformer;
#import <SCBase/SCMacros.h>
#import <Foundation/Foundation.h>
/*
In general, the function of SCCaptureDeviceAuthorizationChecker is to speed up the checking of AVMediaTypeVideo
authorization. It would cache the authorization value. 'preloadVideoCaptureAuthorization' would be called very early
after the app is launched to populate the cached value. 'authorizedForVideoCapture' could be called to get the value
synchronously.
*/
@interface SCCaptureDeviceAuthorizationChecker : NSObject
SC_INIT_AND_NEW_UNAVAILABLE
- (instancetype)initWithPerformer:(SCQueuePerformer *)performer NS_DESIGNATED_INITIALIZER;
- (BOOL)authorizedForVideoCapture;
- (void)preloadVideoCaptureAuthorization;
@end