Files
Jot/Carthage/Checkouts/PromiseKit/Extensions/AVFoundation/Sources/AVAudioSession+AnyPromise.h
James Griffin be7b6b5881 Add PromiseKit dependency
- Added PromiseKit dependency
2018-11-15 22:12:39 -04:00

31 lines
590 B
Objective-C

//
// AVFoundation+AnyPromise.h
//
// Created by Matthew Loseke on 6/21/14.
//
#import <AVFoundation/AVFoundation.h>
#import <PromiseKit/AnyPromise.h>
/**
To import the `AVAudioSession` category:
use_frameworks!
pod "PromiseKit/AVFoundation"
And then in your sources:
#import <PromiseKit/PromiseKit.h>
*/
@interface AVAudioSession (PromiseKit)
/**
Wraps `-requestRecordPermission:`, thens the `BOOL granted` parameter
passed to the wrapped completion block. This promise cannot fail.
@see requestRecordPermission:
*/
- (AnyPromise *)requestRecordPermission;
@end