GoogleMobileAds Framework Reference (original) (raw)
GoogleMobileAds Framework Reference
GADAudioVideoManager
@interface GADAudioVideoManager : NSObjectProvides 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.
- Delegate for receiving video and audio updates.
Declaration
Swift
weak var delegate: (any AudioVideoManagerDelegate)? { get set } - 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.
Declaration
Swift
var isAudioSessionApplicationManaged: Bool { get set } Objective-C
@property (nonatomic) BOOL audioSessionIsApplicationManaged; Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.