mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/HockeySDK-iOS git-subtree-mainline: 085acd26c4432939403765234266e3c1be0f3dd9 git-subtree-split: c7d0c7026303253e2ac576c02655691e5d314fe2
61 lines
2.2 KiB
Objective-C
61 lines
2.2 KiB
Objective-C
#import "HockeySDKFeatureConfig.h"
|
|
|
|
#if HOCKEYSDK_FEATURE_METRICS
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "BITHockeyBaseManager.h"
|
|
|
|
#import "HockeySDKNullability.h"
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/**
|
|
The metrics module.
|
|
|
|
This is the HockeySDK module that handles users, sessions and events tracking.
|
|
|
|
Unless disabled, this module automatically tracks users and session of your app to give you
|
|
better insights about how your app is being used.
|
|
Users are tracked in a completely anonymous way without collecting any personally identifiable
|
|
information.
|
|
|
|
Before starting to track events, ask yourself the questions that you want to get answers to.
|
|
For instance, you might be interested in business, performance/quality or user experience aspects.
|
|
Name your events in a meaningful way and keep in mind that you will use these names
|
|
when searching for events in the HockeyApp web portal.
|
|
|
|
It is your reponsibility to not collect personal information as part of the events tracking or get
|
|
prior consent from your users as necessary.
|
|
*/
|
|
@interface BITMetricsManager : BITHockeyBaseManager
|
|
|
|
/**
|
|
* A property indicating whether the BITMetricsManager instance is disabled.
|
|
*/
|
|
@property (nonatomic, assign) BOOL disabled;
|
|
|
|
/**
|
|
* This method allows to track an event that happened in your app.
|
|
* Remember to choose meaningful event names to have the best experience when diagnosing your app
|
|
* in the HockeyApp web portal.
|
|
*
|
|
* @param eventName The event's name as a string.
|
|
*/
|
|
- (void)trackEventWithName:(nonnull NSString *)eventName;
|
|
|
|
/**
|
|
* This method allows to track an event that happened in your app.
|
|
* Remember to choose meaningful event names to have the best experience when diagnosing your app
|
|
* in the web portal.
|
|
*
|
|
* @param eventName the name of the event, which should be tracked.
|
|
* @param properties key value pairs with additional info about the event.
|
|
* @param measurements key value pairs, which contain custom metrics.
|
|
*/
|
|
- (void)trackEventWithName:(nonnull NSString *)eventName properties:(nullable NSDictionary<NSString *, NSString *> *)properties measurements:(nullable NSDictionary<NSString *, NSNumber *> *)measurements;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
#endif /* HOCKEYSDK_FEATURE_METRICS */
|