-
Notifications
You must be signed in to change notification settings - Fork 1
/
ApiDefinition.cs
232 lines (158 loc) · 6.96 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
using System;
using MonoTouch.Foundation;
using MonoTouch.ObjCRuntime;
using MonoTouch.UIKit;
using System.Drawing;
namespace MonoTouch.FacebookConnect {
[BaseType (typeof (NSObject))]
public partial interface FBAdImage {
[Export ("url", ArgumentSemantic.Copy)]
NSUrl Url { get; }
[Export ("width")]
int Width { get; }
[Export ("height")]
int Height { get; }
[Export ("initWithURL:width:height:")]
IntPtr Constructor (NSUrl url, int width, int height);
[Field ("FacebookAdsSDKErrorDomain", "__Internal")]
NSString FacebookAdsSDKErrorDomain { get; }
}
[BaseType (typeof (NSObject))]
public partial interface FBAdSettings {
[Static, Export ("addTestDevice:")]
void AddTestDevice (string deviceHash);
[Static, Export ("addTestDevices:")]
void AddTestDevices (string [] devicesHash);
[Static, Export ("clearTestDevices")]
void ClearTestDevices ();
[Static, Export ("isChildDirected")]
bool IsChildDirected { set; }
[Static, Export ("urlPrefix")]
string UrlPrefix { set; }
}
[BaseType (typeof (UIView))]
public partial interface FBAdView : IUIWebViewDelegate {
[Export ("initWithPlacementID:adSize:rootViewController:")]
IntPtr Constructor (string placementID, SizeF adSize, UIViewController viewController);
[Export ("loadAd")]
void LoadAd ();
[Export ("disableAutoRefresh")]
void DisableAutoRefresh ();
[Export ("placementID", ArgumentSemantic.Copy)]
string PlacementID { get; }
[Export ("rootViewController", ArgumentSemantic.Assign)]
UIViewController RootViewController { get; }
[Export ("delegate", ArgumentSemantic.Assign)]
FBAdViewDelegate Delegate { get; set; }
}
[Model, BaseType (typeof (NSObject))]
public partial interface FBAdViewDelegate {
[Export ("adViewDidClick:")]
void DidClick (FBAdView adView);
[Export ("adViewDidFinishHandlingClick:")]
void DidFinishHandlingClick (FBAdView adView);
[Export ("adViewDidLoad:")]
void DidLoad (FBAdView adView);
[Export ("adView:didFailWithError:")]
void DidFailWithError (FBAdView adView, NSError error);
[Export ("adViewWillLogImpression:")]
void WillLogImpression (FBAdView adView);
[Export ("viewControllerForPresentingModalView")]
UIViewController ViewControllerForPresentingModalView { get; }
[Field ("FacebookAdsSDKErrorDomain", "__Internal")]
NSString FacebookAdsSDKErrorDomain { get; }
[Field ("kFBAdSize320x50", "__Internal")]
SizeF FBAdSize320x50 { get; }
[Field ("kFBAdSizeHeight50Banner", "__Internal")]
SizeF FBAdSizeHeight50Banner { get; }
[Field ("kFBAdSizeHeight90Banner", "__Internal")]
SizeF FBAdSizeHeight90Banner { get; }
[Field ("kFBAdSizeInterstital", "__Internal")]
SizeF FBAdSizeInterstital { get; }
}
[BaseType (typeof (UIViewController))]
public partial interface FBInterstitialAd : FBAdViewDelegate {
[Export ("placementID", ArgumentSemantic.Copy)]
string PlacementID { get; }
[Wrap ("WeakDelegate")]
IFBInterstitialAdDelegate Delegate { get; set; }
[Export ("delegate", ArgumentSemantic.Assign)][NullAllowed]
IFBInterstitialAdDelegate WeakDelegate { get; set; }
[Export ("initWithPlacementID:")]
IntPtr Constructor (string placementID);
[Export ("isAdValid")]
bool IsAdValid { get; }
[Export ("loadAd")]
void LoadAd ();
[Export ("showAdFromRootViewController:")]
bool ShowAdFromRootViewController (UIViewController rootViewController);
}
[Model, Protocol, BaseType (typeof (NSObject))]
public partial interface FBInterstitialAdDelegate {
[Export ("interstitialAdDidClick:")]
void DidClick (FBInterstitialAd interstitialAd);
[Export ("interstitialAdDidClose:")]
void DidClose (FBInterstitialAd interstitialAd);
[Export ("interstitialAdWillClose:")]
void WillClose (FBInterstitialAd interstitialAd);
[Export ("interstitialAdDidLoad:")]
void DidLoad (FBInterstitialAd interstitialAd);
[Export ("interstitialAd:didFailWithError:")]
void DidFailWithError (FBInterstitialAd interstitialAd, NSError error);
[Export ("interstitialAdWillLogImpression:")]
void WillLogImpression (FBInterstitialAd interstitialAd);
[Export ("starRating", ArgumentSemantic.Assign)]
FBAdStarRating StarRating { get; }
}
public interface IFBInterstitialAdDelegate {}
[BaseType (typeof (NSObject))]
public partial interface FBNativeAd {
[Export ("placementID", ArgumentSemantic.Copy)]
string PlacementID { get; }
[Export ("starRating", ArgumentSemantic.Assign)]
FBAdStarRating StarRating { get; }
[Export ("title", ArgumentSemantic.Copy)]
string Title { get; }
[Export ("socialContext", ArgumentSemantic.Copy)]
string SocialContext { get; }
[Export ("callToAction", ArgumentSemantic.Copy)]
string CallToAction { get; }
[Export ("icon", ArgumentSemantic.Retain)]
FBAdImage Icon { get; }
[Export ("coverImage", ArgumentSemantic.Retain)]
FBAdImage CoverImage { get; }
[Export ("body", ArgumentSemantic.Copy)]
string Body { get; }
[Wrap ("WeakDelegate")]
IFBNativeAdDelegate Delegate { get; set; }
[Export ("delegate", ArgumentSemantic.Assign)][NullAllowed]
IFBNativeAdDelegate WeakDelegate {get; set; }
[Export ("initWithPlacementID:")]
IntPtr Constructor (string placementID);
[Export ("registerViewForInteraction:withViewController:")]
void RegisterViewForInteraction (UIView view, UIViewController viewController);
[Export ("registerViewForInteraction:withViewController:withClickableViews:")]
void RegisterViewForInteraction (UIView view, UIViewController viewController, UIView [] clickableViews);
[Export ("unregisterView")]
void UnregisterView ();
[Export ("loadAd")]
void LoadAd ();
[Export ("isAdValid")]
bool IsAdValid { get; }
}
[BaseType (typeof (NSObject))]
[Model, Protocol]
public partial interface FBNativeAdDelegate {
[Export ("nativeAdDidLoad:")]
void DidLoad (FBNativeAd nativeAd);
[Export ("nativeAdWillLogImpression:")]
void WillLogImpression (FBNativeAd nativeAd);
[Export ("nativeAd:didFailWithError:")]
void DidFailWithError (FBNativeAd nativeAd, NSError error);
[Export ("nativeAdDidClick:")]
void DidClick (FBNativeAd nativeAd);
[Export ("nativeAdDidFinishHandlingClick:")]
void DidFinishHandlingClick (FBNativeAd nativeAd);
}
public interface IFBNativeAdDelegate {}
}