app center;增加發送ping的秒

This commit is contained in:
Caiyanpeng committed 2021-11-12 16:21:13 +08:00
1 parent 1bd1ffdb5a
commit d754ff3b15
719 files changed
+34172 -2875

No files matched your search

@@ -0,0 +1,30 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#import "EventProperties.h"
#import "AppCenterAnalytics/MSACEventProperties.h"
#import "../Core/Utility/NSDateHelper.h"
void* appcenter_unity_analytics_create_event_properties() {
return (void *)CFBridgingRetain([[MSACEventProperties alloc] init]);
}
void appcenter_unity_analytics_event_properties_set_string(MSACEventProperties *properties, char* key, char* val) {
[properties setString:[NSString stringWithUTF8String:val] forKey:[NSString stringWithUTF8String:key]];
}
void appcenter_unity_analytics_event_properties_set_long(MSACEventProperties *properties, char* key, long val) {
[properties setInt64:val forKey:[NSString stringWithUTF8String:key]];
}
void appcenter_unity_analytics_event_properties_set_double(MSACEventProperties *properties, char* key, double val) {
[properties setDouble:val forKey:[NSString stringWithUTF8String:key]];
}
void appcenter_unity_analytics_event_properties_set_bool(MSACEventProperties *properties, char* key, BOOL val) {
[properties setBool:val forKey:[NSString stringWithUTF8String:key]];
}
void appcenter_unity_analytics_event_properties_set_date(MSACEventProperties *properties, char* key, NSDate* val) {
[properties setDate:val forKey:[NSString stringWithUTF8String:key]];
}