/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
iphone/Maps/Common/Statistics/Statistics.h
27 строк
1 KB
Alexander Boriskov
[iOS] Fix some Swift 5 warnings
22 окт 2019, 13:10
22 окт 2019, 13:10
a24375e
Код
Авторство
О чём код?
#import "StatisticsStrings.h" typedef NS_ENUM(NSInteger, StatisticsChannel) { StatisticsChannelDefault, StatisticsChannelRealtime }; @interface Statistics : NSObject // Should be called from the same method in AppDelegate. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; // Should be called from the same method in AppDelegate. - (void)applicationDidBecomeActive; - (void)logApiUsage:(NSString *)programName; + (instancetype)instance; + (void)logEvent:(NSString *)eventName; + (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters; + (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters atLocation:(CLLocation *)location; + (void)logEvent:(NSString *)eventName withChannel:(StatisticsChannel)channel; + (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters withChannel:(StatisticsChannel)channel; + (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters atLocation:(CLLocation *)location withChannel:(StatisticsChannel)channel; + (NSString * _Nonnull)connectionTypeString; @end