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, 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
| 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
| if let location:CLLocation = 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
| 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
| Flurry.setGender("m"); |
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.setUserID("USER_ID"); |
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.logError("ERROR_NAME", message: "ERROR_MESSAGE", exception: e); |
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.logAllPageViewsForTarget(navigationController); |
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.logPageView(); |