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
108 lines (90 loc) · 4.13 KB
/
ApiDefinition.cs
File metadata and controls
108 lines (90 loc) · 4.13 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
96
97
98
99
100
101
102
103
104
105
106
107
108
using System;
using UIKit;
using Foundation;
using ObjCRuntime;
using CoreGraphics;
namespace Firebase.MLKit.Common {
// @interface FIRLocalModel : NSObject
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "FIRLocalModel")]
interface LocalModel
{
// @property (readonly, copy, nonatomic) NSString * _Nonnull path;
[Export ("path")]
string Path { get; }
}
// @interface FIRModelDownloadConditions : NSObject <NSCopying>
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "FIRModelDownloadConditions")]
interface ModelDownloadConditions : INSCopying
{
// @property (readonly, nonatomic) BOOL allowsCellularAccess;
[Export ("allowsCellularAccess")]
bool AllowsCellularAccess { get; }
// @property (readonly, nonatomic) BOOL allowsBackgroundDownloading;
[Export ("allowsBackgroundDownloading")]
bool AllowsBackgroundDownloading { get; }
// -(instancetype _Nonnull)initWithAllowsCellularAccess:(BOOL)allowsCellularAccess allowsBackgroundDownloading:(BOOL)allowsBackgroundDownloading __attribute__((objc_designated_initializer));
[DesignatedInitializer]
[Export ("initWithAllowsCellularAccess:allowsBackgroundDownloading:")]
IntPtr Constructor (bool allowsCellularAccess, bool allowsBackgroundDownloading);
}
interface ModelDownloadSucceedEventArgs
{
[Export ("FIRModelDownloadUserInfoKeyRemoteModel")]
RemoteModel RemoteModel { get; }
}
interface ModelDownloadFailedEventArgs
{
[Export ("FIRModelDownloadUserInfoKeyRemoteModel")]
RemoteModel RemoteModel { get; }
[Export ("FIRModelDownloadUserInfoKeyError")]
NSError Error { get; }
}
// @interface FIRModelManager : NSObject
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "FIRModelManager")]
interface ModelManager
{
// extern const NSNotificationName _Nonnull FIRModelDownloadDidSucceedNotification __attribute__((swift_name("firebaseMLModelDownloadDidSucceed")));
[Notification (typeof (ModelDownloadSucceedEventArgs))]
[Field ("FIRModelDownloadDidSucceedNotification", "__Internal")]
NSString ModelDownloadDidSucceedNotification { get; }
// extern const NSNotificationName _Nonnull FIRModelDownloadDidFailNotification __attribute__((swift_name("firebaseMLModelDownloadDidFail")));
[Notification (typeof (ModelDownloadFailedEventArgs))]
[Field ("FIRModelDownloadDidFailNotification", "__Internal")]
NSString ModelDownloadDidFailNotification { get; }
// extern const FIRModelDownloadUserInfoKey _Nonnull FIRModelDownloadUserInfoKeyRemoteModel;
[Field ("FIRModelDownloadUserInfoKeyRemoteModel", "__Internal")]
NSString ModelDownloadUserInfoKeyRemoteModel { get; }
// extern const FIRModelDownloadUserInfoKey _Nonnull FIRModelDownloadUserInfoKeyError;
[Field ("FIRModelDownloadUserInfoKeyError", "__Internal")]
NSString ModelDownloadUserInfoKeyError { get; }
// +(instancetype _Nonnull)modelManager __attribute__((swift_name("modelManager()")));
[Static]
[Export ("modelManager")]
ModelManager DefaultInstance { get; }
// +(instancetype _Nonnull)modelManagerForApp:(FIRApp * _Nonnull)app __attribute__((swift_name("modelManager(app:)")));
[Static]
[Export ("modelManagerForApp:")]
ModelManager From (Core.App app);
// -(BOOL)isModelDownloaded:(FIRRemoteModel * _Nonnull)remoteModel;
[Export ("isModelDownloaded:")]
bool IsModelDownloaded (RemoteModel remoteModel);
// -(NSProgress * _Nonnull)downloadModel:(FIRRemoteModel * _Nonnull)remoteModel conditions:(FIRModelDownloadConditions * _Nonnull)conditions __attribute__((swift_name("download(_:conditions:)")));
[Export ("downloadModel:conditions:")]
NSProgress DownloadModel (RemoteModel remoteModel, ModelDownloadConditions conditions);
// -(void)deleteDownloadedModel:(FIRRemoteModel * _Nonnull)remoteModel completion:(void (^ _Nonnull)(NSError * _Nullable))completion;
[Export ("deleteDownloadedModel:completion:")]
void DeleteDownloadedModel (RemoteModel remoteModel, Action<NSError> completion);
}
// @interface FIRRemoteModel : NSObject
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "FIRRemoteModel")]
interface RemoteModel
{
// @property (readonly, copy, nonatomic) NSString * _Nonnull name;
[Export ("name")]
string Name { get; }
}
}