This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let locationManager: CLLocationManager = CLLocationManager(); | |
locationManager.startUpdatingLocation(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Capture the author info & user status | |
let articleParams = ["Author": "John Q", "User_Status": "Registered"]; | |
Flurry.logEvent("Article_Read", withParameters: articleParams, timed: true); | |
// In a function that captures when a user navigates away from article | |
// You can pass in additional params or update existing ones here as well | |
Flurry.endTimedEvent("Article_Read", withParameters: nil); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Flurry.logEvent("Article_Read"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Capture the author info & user status | |
let articleParams = ["Author": "John Q", "User_Status": "Registered"]; | |
Flurry.logEvent("Article_Read", withParameters: articleParams); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example of enabling the test mode | |
{ | |
let adInterstitial = FlurryAdInterstitial(space:"ADSPACE"); | |
adInterstitial.adDelegate = self; | |
let adTargeting = FlurryAdTargeting(); | |
adTargeting.testAdsEnabled = true; | |
adInterstitial.targeting = adTargeting; | |
adInterstitial.fetchAd(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController: UIViewController, FlurryAdInterstitialDelegate { | |
func adInterstitialDidFetchAd(interstitialAd: FlurryAdInterstitial!) { | |
// You can choose to present the ad as soon as it is received | |
interstitialAd.presentWithViewController(self); | |
} | |
// Invoked when the interstitial ad is rendered | |
func adInterstitialDidRender(interstitialAd: FlurryAdInterstitial!) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController: UIViewController, FlurryAdInterstitialDelegate { | |
let adInterstitial = FlurryAdInterstitial(space:"ADSPACE"); | |
override func viewDidAppear(animated: Bool) { | |
super.viewDidAppear(animated); | |
adInterstitial.adDelegate = self; | |
adInterstitial.fetchAd(); | |
} | |
override func viewDidDisappear(animated: Bool) { |