mirror of
https://github.com/danog/Telegram.git
synced 2024-12-12 09:29:55 +01:00
27 lines
656 B
C
27 lines
656 B
C
|
#import <Foundation/Foundation.h>
|
||
|
#import <SSignalKit/SSignalKit.h>
|
||
|
|
||
|
typedef enum {
|
||
|
TGAudioSessionTypePlayVoice,
|
||
|
TGAudioSessionTypePlayMusic,
|
||
|
TGAudioSessionTypePlayVideo,
|
||
|
TGAudioSessionTypePlayAndRecord,
|
||
|
TGAudioSessionTypePlayAndRecordHeadphones
|
||
|
} TGAudioSessionType;
|
||
|
|
||
|
|
||
|
typedef enum {
|
||
|
TGAudioSessionRouteChangePause,
|
||
|
TGAudioSessionRouteChangeResume
|
||
|
} TGAudioSessionRouteChange;
|
||
|
|
||
|
@interface TGAudioSessionManager : NSObject
|
||
|
|
||
|
+ (TGAudioSessionManager *)instance;
|
||
|
|
||
|
- (id<SDisposable>)requestSessionWithType:(TGAudioSessionType)type interrupted:(void (^)())interrupted;
|
||
|
- (void)cancelCurrentSession;
|
||
|
+ (SSignal *)routeChange;
|
||
|
|
||
|
@end
|