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 setAge:21]; |
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
CLLocation *location = locationManager.location; | |
[Flurry setLatitude:location.coordinate.latitude | |
longitude:location.coordinate.longitude | |
horizontalAccuracy:location.horizontalAccuracy | |
verticalAccuracy:location.verticalAccuracy]; |
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
CLLocationManager *locationManager = [[CLLocationManager alloc] init]; | |
[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
#ifndef demonstration_demonstration_Bridging_Header_h | |
#define demonstration_demonstration_Bridging_Header_h | |
#import "Flurry.h" | |
#endif |
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
- (void)applicationDidFinishLaunching:(UIApplication *)application { | |
if (device is iPAD) { | |
[FlurryAnalytics startSession:@"API Key for iPad project"] | |
} else { | |
[FlurryAnalytics startSession:@"API Key for iPhone project"] | |
} | |
} |
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
@IBAction func theButtonPressed(sender:WKInterfaceButton) { | |
FlurryWatch.logWatchEvent("The Button has been pressed") | |
//your code | |
} |
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
#import "FlurryWatch.h" | |
- (IBAction) theButtonPressed:(WKInterfaceButton*) sender { | |
[FlurryWatch logWatchEvent:@"The Button has been pressed"]; | |
//your code | |
} |
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
[FlurryWatch logWatchEvent:(NSString*) eventName]; | |
[FlurryWatch logWatchEvent:(NSString*) eventName withParameters:(NSDictionary*) parameters]; |
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
func adNativeDidFetchAd(nativeAd: FlurryAdNative!) { | |
NSLog("Native Ad for Space \(nativeAd.space) Received Ad with \(nativeAd.assetList.count) assets"); | |
for asset in nativeAd.assetList { | |
switch(asset.name) { | |
case "headline": | |
streamTitleLabel.text = asset.value; | |
case "summary": | |
streamDescriptionLabel.text = asset.value; | |