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 (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;