GoogleInteractiveMediaAds Framework Reference

  • IMAAdPlaybackInfo provides insights into various aspects of the ad player, such as current time, total duration, and buffered content.

  • It offers read-only properties like currentMediaTime, totalMediaTime, and bufferedMediaTime to track ad playback progress, all measured in TimeInterval.

  • bufferedMediaTime indicates how much of the ad content has been buffered and is ready for playback.

  • The playing property (or isPlaying in Swift) reveals whether the ad is actively playing or paused.

IMAAdPlaybackInfo

@protocol IMAAdPlaybackInfo <NSObject>

Groups various properties of the ad player.

  • The current media time of the ad, or 0 if no ad loaded.

    Declaration

    Swift

    var currentMediaTime: TimeInterval { get }

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval currentMediaTime;
  • The total media time of the ad, or 0 if no ad loaded.

    Declaration

    Swift

    var totalMediaTime: TimeInterval { get }

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval totalMediaTime;
  • The buffered media time of the ad, or 0 if no ad loaded.

    Declaration

    Swift

    var bufferedMediaTime: TimeInterval { get }

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval bufferedMediaTime;
  • Whether or not the ad is currently playing.

    Declaration

    Swift

    var isPlaying: Bool { get }

    Objective-C

    @property (nonatomic, readonly, getter=isPlaying) BOOL playing;