lpw
2 days ago 1e5242aa56dd1c52c537335ee56d7127d09b24de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
//  GADAudioVideoManager.h
//  Google Mobile Ads SDK
//
//  Copyright 2016 Google LLC. All rights reserved.
//
 
#import <Foundation/Foundation.h>
#import <GoogleMobileAds/GADAudioVideoManagerDelegate.h>
 
/// Provides audio and video notifications and configurations management.
///
/// Don't create an instance of this class and use the one available from GADMobileAds
/// sharedInstance's audioVideoManager.
NS_SWIFT_NAME(AudioVideoManager)
@interface GADAudioVideoManager : NSObject
 
/// Delegate for receiving video and audio updates.
@property(nonatomic, weak, nullable) id<GADAudioVideoManagerDelegate> delegate;
 
/// Indicates whether the application wishes to manage audio session. If set as YES, the Google
/// Mobile Ads SDK will stop managing AVAudioSession during the video playback lifecycle. If set as
/// NO, the Google Mobile Ads SDK will control AVAudioSession. That may include: setting
/// AVAudioSession's category to AVAudioSessionCategoryAmbient when all videos are muted, setting
/// AVAudioSession's category to AVAudioSessionCategorySoloAmbient when any playing video becomes
/// unmuted, and allowing background apps to continue playing sound when all videos rendered by
/// Google Mobile Ads SDK are muted or have stopped playing. Must be accessed on main thread only.
@property(nonatomic, assign)
    BOOL audioSessionIsApplicationManaged NS_SWIFT_NAME(isAudioSessionApplicationManaged);
 
@end