mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			772 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			23 lines
		
	
	
		
			772 B
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import <AVFoundation/AVAudioSession.h>
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| @interface AVAudioSession (OWS)
 | |
| 
 | |
| // #RADAR 45397675 http://www.openradar.me/45397675
 | |
| //
 | |
| // A bug in Swift 4.2+ made `AVAudioSession#setCategory:categorywithOptions:error` not accessible
 | |
| // to Swift.
 | |
| //
 | |
| // It's still available via ObjC, so we have an objc-category method which we can call from Swift
 | |
| // which just calls the original `AVAudioSession#setCategory:categorywithOptions:error` method.
 | |
| - (BOOL)ows_setCategory:(AVAudioSessionCategory)category withOptions:(AVAudioSessionCategoryOptions)options error:(NSError **)outError API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |