I am following this tutorial however I cannot figure out how to set the delegate. I have everything else set up and the ad is displaying but I can not run any code when the ad is closed because I am not sure how to set up the delegate. I tried to use my ad placement name but that wasn't it so I am not sure how I would set up the delegate in this case.
class DetailViewController: ISRewardedVideoDelegate {
@IBAction func ironSourceActionAd(_ sender: Any) {
IronSource.showRewardedVideo(with:UIViewController(), placement: "DefaultRewardedVideo")
}
public func rewardedVideoHasChangedAvailability(_ available: Bool) {
}
public func rewardedVideoDidEnd() {
}
public func rewardedVideoDidStart() {
}
public func rewardedVideoDidClose() {
text()
print("closed")
}
public func rewardedVideoDidOpen() {
print("Opened")
}
public func rewardedVideoDidFailToShowWithError(_ error: Error!) {
}
public func didReceiveReward(forPlacement placementInfo: ISPlacementInfo!) {
}
public func didClickRewardedVideo(_ placementInfo: ISPlacementInfo!) {
}
override func viewDidLoad() {
super.viewDidLoad()
IronSource.initWithAppKey("72c23e35")
error here// IronSource.setRewardedVideoDelegate(DetailViewController)
ISIntegrationHelper.validateIntegration()
}