BroadpeakPlayer
public protocol BroadpeakPlayer : AdPlayer
Broadpeak integrated ad player
-
BroadpeakSession to manage session and ad playback.
Declaration
Swift
var broadpeakSession: BroadpeakSessionData { get } -
Google pal configuration
Declaration
Swift
var palConfiguration: PALSessionConfiguration? { get } -
Updates the current ad view state.
This should be called after setting the ad view and whenever the player view state changes.
Supported states:
.NORMAL- Default player state..MINIMIZED- Player is minimized or not visible..COLLAPSED- Player view is reduced in size..EXPANDED- Player view is expanded..FULLSCREEN- Player is displayed in fullscreen mode.
Declaration
Swift
func setAdViewState(state: AdViewState) -
Should be called when the user interacts with the ad that was requested with the nonce generated by this manager.
Supported interaction types:
AdInteractionType.CLICK- Indicates that the user clicked the ad. This is the default interaction type.AdInteractionType.INVITATIONACCEPT- Indicates that the user accepted an ad invitation or engagement prompt.
Declaration
Swift
func sendAdClick(interactionType: AdInteractionType) -
sendAdClick()Extension methodUndocumented
Declaration
Swift
func sendAdClick()