This repository was archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathApiDefinition.cs
More file actions
81 lines (66 loc) · 3.01 KB
/
ApiDefinition.cs
File metadata and controls
81 lines (66 loc) · 3.01 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
using System;
using System.Collections.Generic;
using Foundation;
#if !NET
using NativeHandle = System.IntPtr;
#endif
namespace Firebase.Installations
{
// typedef void (^FIRInstallationsIDHandler)(NSString * _Nullable, NSError * _Nullable);
delegate void InstallationsIdHandler ([NullAllowed] string identifier, [NullAllowed] NSError error);
// typedef void (^FIRInstallationsTokenHandler)(FIRInstallationsAuthTokenResult * _Nullable, NSError * _Nullable);
delegate void InstallationsTokenHandler ([NullAllowed] InstallationsAuthTokenResult tokenResult, [NullAllowed] NSError error);
interface InstallationIdChangedEventArgs
{
[Export ("kFIRInstallationIDDidChangeNotificationAppNameKey")]
string AppName { get; set; }
}
// @interface FIRInstallations : NSObject
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "FIRInstallations")]
interface Installations
{
// extern const NSNotificationName _Nonnull FIRInstallationIDDidChangeNotification;
[Notification (typeof (InstallationIdChangedEventArgs))]
[Field ("FIRInstallationIDDidChangeNotification", "__Internal")]
NSString InstallationIdDidChangeNotification { get; }
// extern NSString *const _Nonnull kFIRInstallationIDDidChangeNotificationAppNameKey;
[Field ("kFIRInstallationIDDidChangeNotificationAppNameKey", "__Internal")]
NSString InstallationIdDidChangeNotificationAppNameKey { get; }
// +(FIRInstallations * _Nonnull)installations __attribute__((swift_name("installations()")));
[Static]
[Export ("installations")]
Installations DefaultInstance { get; }
// +(FIRInstallations * _Nonnull)installationsWithApp:(FIRApp * _Nonnull)application __attribute__((swift_name("installations(app:)")));
[Static]
[Export ("installationsWithApp:")]
Installations From (Core.App application);
// -(void)installationIDWithCompletion:(FIRInstallationsIDHandler _Nonnull)completion;
[Async]
[Export ("installationIDWithCompletion:")]
void GetInstallationId (InstallationsIdHandler completion);
// -(void)authTokenWithCompletion:(FIRInstallationsTokenHandler _Nonnull)completion;
[Async]
[Export ("authTokenWithCompletion:")]
void GetAuthToken (InstallationsTokenHandler completion);
// -(void)authTokenForcingRefresh:(BOOL)forceRefresh completion:(FIRInstallationsTokenHandler _Nonnull)completion;
[Async]
[Export ("authTokenForcingRefresh:completion:")]
void GetAuthToken (bool forceRefresh, InstallationsTokenHandler completion);
// -(void)deleteWithCompletion:(void (^ _Nonnull)(NSError * _Nullable))completion;
[Async]
[Export ("deleteWithCompletion:")]
void Delete (Action<NSError> completion);
}
// @interface FIRInstallationsAuthTokenResult : NSObject
[BaseType(typeof(NSObject), Name = "FIRInstallationsAuthTokenResult")]
interface InstallationsAuthTokenResult
{
// @property (readonly, nonatomic) NSString * _Nonnull authToken;
[Export("authToken")]
string AuthToken { get; }
// @property (readonly, nonatomic) NSDate * _Nonnull expirationDate;
[Export("expirationDate")]
NSDate ExpirationDate { get; }
}
}