forked from organicmaps/organicmaps
[iOS] Export (kml, ge0, geo) Logging
This commit is contained in:
parent
39e6fe2342
commit
bad678cd5f
2 changed files with 9 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
#import "BalloonView.h"
|
||||
#import "SelectSetVC.h"
|
||||
#import "SelectColorVC.h"
|
||||
#import "Statistics.h"
|
||||
|
||||
#define TEXTFIELD_TAG 999
|
||||
|
||||
|
@ -295,11 +296,13 @@
|
|||
|
||||
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
|
||||
{
|
||||
[[Statistics instance] logEvent:@"ge0(zero) MAIL Export"];
|
||||
[self dismissModalViewControllerAnimated:YES];
|
||||
}
|
||||
|
||||
-(void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result
|
||||
{
|
||||
[[Statistics instance] logEvent:@"ge0(zero) MESSAGE Export"];
|
||||
[self dismissModalViewControllerAnimated:YES];
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#import "SettingsManager.h"
|
||||
#import "Preferences.h"
|
||||
#import "LocationManager.h"
|
||||
#import "Statistics.h"
|
||||
|
||||
#include <sys/xattr.h>
|
||||
|
||||
|
@ -175,6 +176,10 @@ void InitLocalizedStrings()
|
|||
{
|
||||
[self showParsedBookmarkOnMap: request];
|
||||
m_didOpenedWithUrl = YES;
|
||||
if ([scheme isEqualToString:@"geo"])
|
||||
[[Statistics instance] logEvent:@"geo Import"];
|
||||
if ([scheme isEqualToString:@"ge0"])
|
||||
[[Statistics instance] logEvent:@"ge0(zero) Import"];
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
|
@ -188,6 +193,7 @@ void InitLocalizedStrings()
|
|||
[[NSNotificationCenter defaultCenter] postNotificationName:@"KML file added" object:nil];
|
||||
[self showLoadFileAlertIsSuccessful:YES];
|
||||
m_didOpenedWithUrl = YES;
|
||||
[[Statistics instance] logEvent:@"KML Import"];
|
||||
return YES;
|
||||
}
|
||||
NSLog(@"Scheme %@ is not supported", scheme);
|
||||
|
|
Loading…
Add table
Reference in a new issue