|
| 1 | +using System; |
| 2 | +using Foundation; |
| 3 | + |
| 4 | +namespace binding_ios |
| 5 | +{ |
| 6 | + |
| 7 | + // @interface HyperTrackCancellable : NSObject |
| 8 | + [BaseType(typeof(NSObject))] |
| 9 | + interface HyperTrackCancellable |
| 10 | + { |
| 11 | + // -(void)cancel; |
| 12 | + [Export("cancel")] |
| 13 | + void Cancel(); |
| 14 | + } |
| 15 | + |
| 16 | + // @interface HyperTrackMauiWrapper : NSObject |
| 17 | + [BaseType(typeof(NSObject))] |
| 18 | + interface HyperTrackMauiWrapper |
| 19 | + { |
| 20 | + // +(NSString * _Nonnull)addGeotag:(NSString * _Nonnull)geotagJson __attribute__((warn_unused_result(""))); |
| 21 | + [Static] |
| 22 | + [Export("addGeotag:")] |
| 23 | + string AddGeotag(string geotagJson); |
| 24 | + |
| 25 | + // +(NSString * _Nonnull)getAllowMockLocation __attribute__((warn_unused_result(""))); |
| 26 | + [Static] |
| 27 | + [Export("getAllowMockLocation")] |
| 28 | + string GetAllowMockLocation(); |
| 29 | + |
| 30 | + // +(NSString * _Nonnull)getDeviceId __attribute__((warn_unused_result(""))); |
| 31 | + [Static] |
| 32 | + [Export("getDeviceId")] |
| 33 | + string GetDeviceId(); |
| 34 | + |
| 35 | + // +(NSString * _Nonnull)getDynamicPublishableKey __attribute__((warn_unused_result(""))); |
| 36 | + [Static] |
| 37 | + [Export("getDynamicPublishableKey")] |
| 38 | + string GetDynamicPublishableKey(); |
| 39 | + |
| 40 | + // +(NSString * _Nonnull)getErrors __attribute__((warn_unused_result(""))); |
| 41 | + [Static] |
| 42 | + [Export("getErrors")] |
| 43 | + string GetErrors(); |
| 44 | + |
| 45 | + // +(NSString * _Nonnull)getIsAvailable __attribute__((warn_unused_result(""))); |
| 46 | + [Static] |
| 47 | + [Export("getIsAvailable")] |
| 48 | + string GetIsAvailable(); |
| 49 | + |
| 50 | + // +(NSString * _Nonnull)getIsTracking __attribute__((warn_unused_result(""))); |
| 51 | + [Static] |
| 52 | + [Export("getIsTracking")] |
| 53 | + string GetIsTracking(); |
| 54 | + |
| 55 | + // +(NSString * _Nonnull)getLocation __attribute__((warn_unused_result(""))); |
| 56 | + [Static] |
| 57 | + [Export("getLocation")] |
| 58 | + string GetLocation(); |
| 59 | + |
| 60 | + // +(NSString * _Nonnull)getMetadata __attribute__((warn_unused_result(""))); |
| 61 | + [Static] |
| 62 | + [Export("getMetadata")] |
| 63 | + string GetMetadata(); |
| 64 | + |
| 65 | + // +(NSString * _Nonnull)getName __attribute__((warn_unused_result(""))); |
| 66 | + [Static] |
| 67 | + [Export("getName")] |
| 68 | + string GetName(); |
| 69 | + |
| 70 | + // +(NSString * _Nonnull)getOrders __attribute__((warn_unused_result(""))); |
| 71 | + [Static] |
| 72 | + [Export("getOrders")] |
| 73 | + string GetOrders(); |
| 74 | + |
| 75 | + // +(NSString * _Nonnull)getWorkerHandle __attribute__((warn_unused_result(""))); |
| 76 | + [Static] |
| 77 | + [Export("getWorkerHandle")] |
| 78 | + string GetWorkerHandle(); |
| 79 | + |
| 80 | + // +(HyperTrackCancellable *)locate:(void (^)(NSString *))callback; |
| 81 | + [Static] |
| 82 | + [Export("locate:")] |
| 83 | + HyperTrackCancellable Locate(Action<NSString> callback); |
| 84 | + |
| 85 | + // +(void)setAllowMockLocation:(NSString * _Nonnull)valueJson; |
| 86 | + [Static] |
| 87 | + [Export("setAllowMockLocation:")] |
| 88 | + void SetAllowMockLocation(string valueJson); |
| 89 | + |
| 90 | + // +(void)setDynamicPublishableKey:(NSString * _Nonnull)valueJson; |
| 91 | + [Static] |
| 92 | + [Export("setDynamicPublishableKey:")] |
| 93 | + void SetDynamicPublishableKey(string valueJson); |
| 94 | + |
| 95 | + // +(void)setIsAvailable:(NSString * _Nonnull)valueJson; |
| 96 | + [Static] |
| 97 | + [Export("setIsAvailable:")] |
| 98 | + void SetIsAvailable(string valueJson); |
| 99 | + |
| 100 | + // +(void)setIsTracking:(NSString * _Nonnull)valueJson; |
| 101 | + [Static] |
| 102 | + [Export("setIsTracking:")] |
| 103 | + void SetIsTracking(string valueJson); |
| 104 | + |
| 105 | + // +(void)setMetadata:(NSString * _Nonnull)metadataJson; |
| 106 | + [Static] |
| 107 | + [Export("setMetadata:")] |
| 108 | + void SetMetadata(string metadataJson); |
| 109 | + |
| 110 | + // +(void)setName:(NSString * _Nonnull)valueJson; |
| 111 | + [Static] |
| 112 | + [Export("setName:")] |
| 113 | + void SetName(string valueJson); |
| 114 | + |
| 115 | + // +(void)setWorkerHandle:(NSString * _Nonnull)workerHandleJson; |
| 116 | + [Static] |
| 117 | + [Export("setWorkerHandle:")] |
| 118 | + void SetWorkerHandle(string workerHandleJson); |
| 119 | + |
| 120 | + // +(HyperTrackCancellable *)subscribeToErrors:(void (^)(NSString *))callback; |
| 121 | + [Static] |
| 122 | + [Export("subscribeToErrors:")] |
| 123 | + HyperTrackCancellable SubscribeToErrors(Action<NSString> callback); |
| 124 | + |
| 125 | + // +(HyperTrackCancellable *)subscribeToIsAvailable:(void (^)(NSString *))callback; |
| 126 | + [Static] |
| 127 | + [Export("subscribeToIsAvailable:")] |
| 128 | + HyperTrackCancellable SubscribeToIsAvailable(Action<NSString> callback); |
| 129 | + |
| 130 | + // +(HyperTrackCancellable *)subscribeToIsTracking:(void (^)(NSString *))callback; |
| 131 | + [Static] |
| 132 | + [Export("subscribeToIsTracking:")] |
| 133 | + HyperTrackCancellable SubscribeToIsTracking(Action<NSString> callback); |
| 134 | + |
| 135 | + // +(HyperTrackCancellable *)subscribeToLocation:(void (^)(NSString *))callback; |
| 136 | + [Static] |
| 137 | + [Export("subscribeToLocation:")] |
| 138 | + HyperTrackCancellable SubscribeToLocation(Action<NSString> callback); |
| 139 | + |
| 140 | + // +(HyperTrackCancellable *)subscribeToOrders:(void (^)(NSString *))callback; |
| 141 | + [Static] |
| 142 | + [Export("subscribeToOrders:")] |
| 143 | + HyperTrackCancellable SubscribeToOrders(Action<NSString> callback); |
| 144 | + |
| 145 | + // +(NSString * _Nonnull)orderIsInsideGeofence:(NSString * _Nonnull)orderHandle __attribute__((warn_unused_result(""))); |
| 146 | + [Static] |
| 147 | + [Export("orderIsInsideGeofence:")] |
| 148 | + string OrderIsInsideGeofence(string orderHandle); |
| 149 | + |
| 150 | + } |
| 151 | +} |
| 152 | +// #endif |
0 commit comments