forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApiDefinition.cs
More file actions
95 lines (77 loc) · 3.51 KB
/
ApiDefinition.cs
File metadata and controls
95 lines (77 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
using System;
using System.Collections.Generic;
using Foundation;
using ObjCRuntime;
#if !NET
using NativeHandle = System.IntPtr;
#endif
namespace Firebase.Analytics
{
// @interface FIRAnalytics : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRAnalytics")]
interface Analytics
{
// +(void)logEventWithName:(NSString * _Nonnull)name parameters:(NSDictionary<NSString *,NSObject *> * _Nullable)parameters;
[Static]
[Export ("logEventWithName:parameters:")]
void LogEvent (string name, [NullAllowed] NSDictionary<NSString, NSObject> nsParameters);
[Static]
[Wrap ("LogEvent (name, parameters == null ? null : parameters.Keys.Count == 0 ? new NSDictionary<NSString, NSObject> () : NSDictionary<NSString, NSObject>.FromObjectsAndKeys (System.Linq.Enumerable.ToArray (parameters.Values), System.Linq.Enumerable.ToArray (parameters.Keys), parameters.Keys.Count))")]
void LogEvent (string name, [NullAllowed] Dictionary<object, object> parameters);
// +(void)setUserPropertyString:(NSString * _Nullable)value forName:(NSString * _Nonnull)name;
[Static]
[Export ("setUserPropertyString:forName:")]
void SetUserProperty ([NullAllowed] string value, string name);
// +(void)setUserID:(NSString * _Nullable)userID;
[Static]
[Export ("setUserID:")]
void SetUserId ([NullAllowed] string userId);
// +(void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled;
[Static]
[Export ("setAnalyticsCollectionEnabled:")]
void SetAnalyticsCollectionEnabled (bool analyticsCollectionEnabled);
// +(void)setSessionTimeoutInterval:(NSTimeInterval)sessionTimeoutInterval;
[Static]
[Export ("setSessionTimeoutInterval:")]
void SetSessionTimeoutInterval (double sessionTimeoutInterval);
// + (nullable NSString *)appInstanceID;
[Static]
[Export ("appInstanceID")]
string AppInstanceId { get; }
// + (void)resetAnalyticsData;
[Static]
[Export ("resetAnalyticsData")]
void ResetAnalyticsData ();
// +(void)setDefaultEventParameters:(NSDictionary<NSString *,id> * _Nullable)parameters;
[Static]
[Export ("setDefaultEventParameters:")]
void SetDefaultEventParameters ([NullAllowed] NSDictionary<NSString, NSObject> nsParameters);
[Static]
[Wrap ("SetDefaultEventParameters (parameters == null ? null : parameters.Keys.Count == 0 ? new NSDictionary<NSString, NSObject> () : NSDictionary<NSString, NSObject>.FromObjectsAndKeys (System.Linq.Enumerable.ToArray (parameters.Values), System.Linq.Enumerable.ToArray (parameters.Keys), parameters.Keys.Count))")]
void SetDefaultEventParameters ([NullAllowed] Dictionary<object, object> parameters);
///
/// This method comes from a category (FIRAnalytics+AppDelegate.h)
///
// +(void)handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)(void))completionHandler;
[Static]
[Export ("handleEventsForBackgroundURLSession:completionHandler:")]
void HandleEventsForBackgroundUrlSession (string identifier, [NullAllowed] Action completionHandler);
// +(void)handleOpenURL:(NSURL *)url;
[Static]
[Export ("handleOpenURL:")]
void HandleOpenUrl (NSUrl url);
// +(void)handleUserActivity:(id)userActivity;
[Static]
[Export ("handleUserActivity:")]
void HandleUserActivity (NSObject userActivity);
///
/// This method comes from a category (FIRAnalytics+Constent.h)
///
// + (void)setConsent:(NSDictionary<FIRConsentType, FIRConsentStatus> *)consentSettings;
[Static]
[Internal]
[Export ("setConsent:")]
void _SetConsent (NSDictionary<NSString, NSString> consentSettings);
}
}