mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
27 lines
656 B
Objective-C
27 lines
656 B
Objective-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
|