GoogleInteractiveMediaAds Framework Reference

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 (readonly, nonatomic) NSTimeInterval currentMediaTime;
  • The total media time of the ad, or 0 if no ad loaded.

    Declaration

    Swift

    var totalMediaTime: TimeInterval { get }

    Objective-C

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

    Declaration

    Swift

    var bufferedMediaTime: TimeInterval { get }

    Objective-C

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

    Declaration

    Swift

    var isPlaying: Bool { get }

    Objective-C

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