CastAdInfoParser
@objc
public class CastAdInfoParser : NSObject, GCKRemoteMediaClientAdInfoParserDelegate
CastAdInfoParser
This class can be used to handle advertisement UI while casting while using google components. There is 2 options to use this class :
- set
-
Undocumented
Declaration
Swift
@objc public static let shared: CastAdInfoParser
-
return A boolean flag indicating whether your receiver is currently playing an ad ot not
Declaration
Swift
@objc public func remoteMediaClient(_ client: GCKRemoteMediaClient, shouldSetPlayingAdIn mediaStatus: GCKMediaStatus) -> Bool
-
A list of playback positions at which the ads occur.
Declaration
Swift
@objc public func remoteMediaClient(_ client: GCKRemoteMediaClient, shouldSetAdBreaksIn mediaStatus: GCKMediaStatus) -> [GCKAdBreakInfo]?