Skip to content

Commit

Permalink
Start Interstitial
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcgill88 committed May 21, 2019
1 parent 46b49ec commit a8677e0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/AdmobBanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ extension AdmobBanner : GADBannerViewDelegate {
channel.invokeMethod("opened", arguments: nil)
}

// channel.invokeMethod("impression", null)
// TODO: not sure this exists on iOS. channel.invokeMethod("impression", null)

func adViewWillLeaveApplication(_ bannerView: GADBannerView) {
channel.invokeMethod("leftApplication", arguments: nil)
Expand Down
27 changes: 27 additions & 0 deletions ios/Classes/AdmobInterstitial.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
Copyright (c) 2019 Kevin McGill <kevin@mcgilldevtech.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

import Foundation

class AdmobIntersitial: NSObject {


}
1 change: 1 addition & 0 deletions ios/Classes/SwiftAdmobFlutterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class SwiftAdmobFlutterPlugin: NSObject, FlutterPlugin {
registrar.addMethodCallDelegate(instance, channel: defaultChannel)

let interstitialChannel = FlutterMethodChannel(name: "admob_flutter/interstitial", binaryMessenger: registrar.messenger())
// registrar.addMethodCallDelegate(AdmobIntersitial(), channel: interstitialChannel)
registrar.addMethodCallDelegate(instance, channel: interstitialChannel)

let rewardChannel = FlutterMethodChannel(name: "admob_flutter/reward", binaryMessenger: registrar.messenger())
Expand Down

0 comments on commit a8677e0

Please sign in to comment.