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
831 B
24 lines
831 B
//
|
|
// SCCaptureDeviceAuthorization.h
|
|
// Snapchat
|
|
//
|
|
// Created by Xiaomu Wu on 8/19/14.
|
|
// Copyright (c) 2014 Snapchat, Inc. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface SCCaptureDeviceAuthorization : NSObject
|
|
|
|
// Methods for checking / requesting authorization to use media capture devices of a given type.
|
|
+ (BOOL)notDeterminedForMediaType:(NSString *)mediaType;
|
|
+ (BOOL)deniedForMediaType:(NSString *)mediaType;
|
|
+ (BOOL)restrictedForMediaType:(NSString *)mediaType;
|
|
+ (void)requestAccessForMediaType:(NSString *)mediaType completionHandler:(void (^)(BOOL granted))handler;
|
|
|
|
// Convenience methods for media type == AVMediaTypeVideo
|
|
+ (BOOL)notDeterminedForVideoCapture;
|
|
+ (BOOL)deniedForVideoCapture;
|
|
+ (void)requestAccessForVideoCaptureWithCompletionHandler:(void (^)(BOOL granted))handler;
|
|
|
|
@end
|