forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApiDefinition.cs
81 lines (65 loc) · 2.14 KB
/
ApiDefinition.cs
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
using System;
using UIKit;
using Foundation;
using ObjCRuntime;
using CoreGraphics;
namespace Google.Core
{
// @interface GGLConfiguration : NSObject
[BaseType (typeof(NSObject), Name = "GGLConfiguration")]
interface Configuration
{
// @property (readonly, copy, nonatomic) NSString * apiKey;
[Export ("apiKey")]
string ApiKey { get; }
// @property (readonly, copy, nonatomic) NSString * clientID;
[Export ("clientID")]
string ClientId { get; }
// @property (readonly, copy, nonatomic) NSString * trackingID;
[Export ("trackingID")]
string TrackingId { get; }
// @property (readonly, copy, nonatomic) NSString * googleAppID;
[Export ("googleAppID")]
string GoogleAppId { get; }
// @property (readonly, nonatomic) BOOL isAnalyticsEnabled;
[Export ("isAnalyticsEnabled")]
bool IsAnalyticsEnabled { get; }
// @property (readonly, nonatomic) BOOL isMeasurementEnabled;
[Export ("isMeasurementEnabled")]
bool IsMeasurementEnabled { get; }
// @property (readonly, nonatomic) BOOL isSignInEnabled;
[Export ("isSignInEnabled")]
bool IsSignInEnabled { get; }
// @property (readonly, copy, nonatomic) NSString * libraryVersionID;
[Export ("libraryVersionID")]
string LibraryVersionId { get; }
}
// @interface GGLContext : NSObject
[BaseType (typeof(NSObject), Name = "GGLContext")]
interface Context
{
// @property (readonly, nonatomic, strong) GGLConfiguration * configuration;
[Export ("configuration", ArgumentSemantic.Strong)]
Configuration Configuration { get; }
// +(instancetype)sharedInstance;
[Static]
[Export ("sharedInstance")]
Context SharedInstance { get; }
// -(void)configureWithError:(NSError **)error;
[Export ("configureWithError:")]
void Configure (out NSError error);
}
// @interface GMRConfiguration : NSObject
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "GMRConfiguration")]
interface MeasurementConfiguration
{
// + (GMRConfiguration *)sharedInstance;
[Static]
[Export ("sharedInstance")]
MeasurementConfiguration SharedInstance { get; }
// - (void)setIsEnabled:(BOOL)isEnabled;
[Export ("setIsEnabled:")]
void SetIsEnabled (bool isEnabled);
}
}