forked from organicmaps/organicmaps
[iOS] PP tap log with Alohalytics
This commit is contained in:
parent
f1950a10df
commit
f62bde0057
2 changed files with 23 additions and 0 deletions
|
@ -10,12 +10,14 @@
|
|||
#import "PlacePageBookmarkDescriptionCell.h"
|
||||
#import "ColorPickerView.h"
|
||||
#import "Statistics.h"
|
||||
#import "../../3party/Alohalytics/src/alohalytics_objc.h"
|
||||
|
||||
#include "../../base/string_utils.hpp"
|
||||
#include "../../platform/platform.hpp"
|
||||
#include "../../search/result.hpp"
|
||||
#include "../../std/shared_ptr.hpp"
|
||||
|
||||
extern NSString * const kAlohalyticsTapEventKey;
|
||||
|
||||
typedef NS_ENUM(NSUInteger, CellRow)
|
||||
{
|
||||
|
@ -437,7 +439,10 @@ typedef NS_ENUM(NSUInteger, CellRow)
|
|||
if ([locationManager enabledOnMap])
|
||||
[locationManager start:self];
|
||||
if (state == PlacePageStateOpened)
|
||||
{
|
||||
[Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"ppOpen"];
|
||||
[locationManager triggerCompass];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -764,6 +769,7 @@ typedef NS_ENUM(NSUInteger, CellRow)
|
|||
|
||||
- (void)routeButtonPressed:(UIButton *)sender
|
||||
{
|
||||
[Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"ppRoute"];
|
||||
[self.delegate placePageViewDidStartRouting:self];
|
||||
}
|
||||
|
||||
|
@ -1054,6 +1060,7 @@ typedef NS_ENUM(NSUInteger, CellRow)
|
|||
|
||||
- (void)addBookmark
|
||||
{
|
||||
[Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"ppBookmark"];
|
||||
Framework & framework = GetFramework();
|
||||
if (m_bookmarkData)
|
||||
{
|
||||
|
@ -1093,6 +1100,7 @@ typedef NS_ENUM(NSUInteger, CellRow)
|
|||
|
||||
- (void)shareCellDidPressShareButton:(PlacePageShareCell *)cell
|
||||
{
|
||||
[Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"ppShare"];
|
||||
[self.delegate placePageView:self willShareText:self.title point:[self pinPoint]];
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
#import "TimeUtils.h"
|
||||
#import "RouteOverallInfoView.h"
|
||||
#import "NextTurnPhoneView.h"
|
||||
#import "../../3party/Alohalytics/src/alohalytics_objc.h"
|
||||
|
||||
extern NSString * const kAlohalyticsTapEventKey;
|
||||
|
||||
@interface RouteView ()
|
||||
|
||||
|
@ -126,11 +129,23 @@
|
|||
|
||||
- (void)closeButtonPressed:(id)sender
|
||||
{
|
||||
switch (self.state)
|
||||
{
|
||||
case RouteViewStateInfo:
|
||||
[Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"routeClose"];
|
||||
break;
|
||||
case RouteViewStateTurnInstructions:
|
||||
[Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"routeGoClose"];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
[self.delegate routeViewDidCancelRouting:self];
|
||||
}
|
||||
|
||||
- (void)startButtonPressed:(id)sender
|
||||
{
|
||||
[Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"routeGo"];
|
||||
[self.delegate routeViewDidStartFollowing:self];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue