<GCKRemoteMediaClientAdInfoParserDelegate> Protocol

<GCKRemoteMediaClientAdInfoParserDelegate> Protocol Reference

Overview

The delegate protocol for parsing ad break information from a media status.

Deprecated:

Inherits <NSObject>.

Instance Method Summary

(BOOL) - remoteMediaClient:shouldSetPlayingAdInMediaStatus:
 Allows the delegate to determine whether the receiver is playing an ad or not, based on the current media status. More...
 
(nullable NSArray
< GCKAdBreakInfo * > *) 
- remoteMediaClient:shouldSetAdBreaksInMediaStatus:
 Allows the delegate to determine the list of ad breaks in the current content. More...
 

Method Detail

- (BOOL) remoteMediaClient: (GCKRemoteMediaClient *)  client
shouldSetPlayingAdInMediaStatus: (GCKMediaStatus *)  mediaStatus 
optional

Allows the delegate to determine whether the receiver is playing an ad or not, based on the current media status.

Parameters
clientThe client.
mediaStatusThe current media status.
Returns
YES if the receiver is currently playing an ad, NO otherwise.
- (nullable NSArray<GCKAdBreakInfo *> *) remoteMediaClient: (GCKRemoteMediaClient *)  client
shouldSetAdBreaksInMediaStatus: (GCKMediaStatus *)  mediaStatus 
optional

Allows the delegate to determine the list of ad breaks in the current content.

Parameters
clientThe client.
mediaStatusThe current media status.
Returns
An array of GCKAdBreakInfo objects representing the ad breaks for this content, or nil if there are no ad breaks.