This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 167
/
Copy pathApiDefinition.cs
103 lines (84 loc) · 3.8 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
using System;
using System.Collections.Generic;
using CoreGraphics;
using Foundation;
using ObjCRuntime;
using StoreKit;
using UIKit;
#if !NET
using NativeHandle = System.IntPtr;
#endif
namespace Google.UserMessagingPlatform
{
// typedef void (^UMPConsentFormLoadCompletionHandler)(UMPConsentForm * _Nullable, NSError * _Nullable);
delegate void ConsentFormLoadCompletionHandler([NullAllowed] ConsentForm consentForm, [NullAllowed] NSError error);
// typedef void (^UMPConsentFormPresentCompletionHandler)(NSError * _Nullable);
delegate void ConsentFormPresentCompletionHandler([NullAllowed] NSError error);
// typedef void (^UMPConsentInformationUpdateCompletionHandler)(NSError * _Nullable);
delegate void ConsentInformationUpdateCompletionHandler([NullAllowed] NSError error);
// @interface UMPConsentForm
[DisableDefaultCtor]
[BaseType(typeof(NSObject), Name = "UMPConsentForm")]
interface ConsentForm
{
// +(void)loadWithCompletionHandler:(UMPConsentFormLoadCompletionHandler _Nonnull)completionHandler;
[Static]
[Export ("loadWithCompletionHandler:")]
void LoadWithCompletionHandler (ConsentFormLoadCompletionHandler completionHandler);
// -(void)presentFromViewController:(id)viewController completionHandler:(UMPConsentFormPresentCompletionHandler _Nullable)completionHandler;
[Export ("presentFromViewController:completionHandler:")]
void PresentFromViewController (NSObject viewController, [NullAllowed] ConsentFormPresentCompletionHandler completionHandler);
}
// @interface UMPConsentInformation : NSObject
[BaseType (typeof(NSObject), Name = "UMPConsentInformation")]
interface ConsentInformation
{
// @property (readonly, nonatomic, class) UMPConsentInformation * _Nonnull sharedInstance;
[Static]
[Export ("sharedInstance")]
ConsentInformation SharedInstance { get; }
// extern NSString *const _Nonnull UMPVersionString;
[Field ("UMPVersionString", "__Internal")]
NSString UMPVersionString { get; }
// extern NSErrorDomain _Nonnull const UMPErrorDomain;
[Field ("UMPErrorDomain", "__Internal")]
NSString UMPErrorDomain { get; }
// @property (readonly, nonatomic) UMPConsentStatus consentStatus;
[Export ("consentStatus")]
ConsentStatus ConsentStatus { get; }
// @property (readonly, nonatomic) UMPConsentType consentType;
[Export ("consentType")]
ConsentType ConsentType { get; }
// @property (readonly, nonatomic) UMPFormStatus formStatus;
[Export ("formStatus")]
FormStatus FormStatus { get; }
// -(void)requestConsentInfoUpdateWithParameters:(id)parameters completionHandler:(UMPConsentInformationUpdateCompletionHandler _Nonnull)handler;
[Export ("requestConsentInfoUpdateWithParameters:completionHandler:")]
void RequestConsentInfoUpdateWithParameters (NSObject parameters, ConsentInformationUpdateCompletionHandler handler);
// -(void)reset;
[Export ("reset")]
void Reset ();
}
// @interface UMPDebugSettings : NSObject <NSCopying>
[BaseType (typeof(NSObject), Name = "UMPDebugSettings")]
interface DebugSettings : INSCopying
{
// @property (nonatomic) NSArray<NSString *> * _Nullable testDeviceIdentifiers;
[NullAllowed, Export ("testDeviceIdentifiers", ArgumentSemantic.Assign)]
string[] TestDeviceIdentifiers { get; set; }
// @property (nonatomic) UMPDebugGeography geography;
[Export ("geography", ArgumentSemantic.Assign)]
DebugGeography Geography { get; set; }
}
// @interface UMPRequestParameters : NSObject
[BaseType (typeof(NSObject), Name = "UMPRequestParameters")]
interface RequestParameters
{
// @property (nonatomic) BOOL tagForUnderAgeOfConsent;
[Export ("tagForUnderAgeOfConsent")]
bool TagForUnderAgeOfConsent { get; set; }
// @property (copy, nonatomic) UMPDebugSettings * _Nullable debugSettings;
[NullAllowed, Export ("debugSettings", ArgumentSemantic.Copy)]
DebugSettings DebugSettings { get; set; }
}
}