Skip to content

Instantly share code, notes, and snippets.

@matsukurou
Created September 25, 2015 03:42
Show Gist options
  • Save matsukurou/fcbe77dbfc793f17d65a to your computer and use it in GitHub Desktop.
Save matsukurou/fcbe77dbfc793f17d65a to your computer and use it in GitHub Desktop.
ReproのライブラリをC#にBindingした際の、ApiDefinitionsファイル
using CoreGraphics;
using Foundation;
using UIKit;
namespace Repro
{
[Verify (ConstantsInterfaceAssociation)]
partial interface Constants
{
// extern double ReproVersionNumber;
[Field ("ReproVersionNumber")]
double ReproVersionNumber { get; }
// extern const unsigned char [] ReproVersionString;
[Field ("ReproVersionString")]
byte[] ReproVersionString { get; }
}
// @interface Repro : NSObject
[BaseType (typeof(NSObject))]
interface Repro
{
// +(void)setup:(NSString *)token;
[Static]
[Export ("setup:")]
void Setup (string token);
// +(void)startRecording;
[Static]
[Export ("startRecording")]
void StartRecording ();
// +(void)stopRecording;
[Static]
[Export ("stopRecording")]
void StopRecording ();
// +(void)pauseRecording;
[Static]
[Export ("pauseRecording")]
void PauseRecording ();
// +(void)resumeRecording;
[Static]
[Export ("resumeRecording")]
void ResumeRecording ();
// +(void)mask:(UIView *)view;
[Static]
[Export ("mask:")]
void Mask (UIView view);
// +(void)unmask:(UIView *)view;
[Static]
[Export ("unmask:")]
void Unmask (UIView view);
// +(void)maskWithRect:(CGRect)rect key:(NSString *)key;
[Static]
[Export ("maskWithRect:key:")]
void MaskWithRect (CGRect rect, string key);
// +(void)unmaskForKey:(NSString *)key;
[Static]
[Export ("unmaskForKey:")]
void UnmaskForKey (string key);
// +(void)setUserID:(NSString *)userID;
[Static]
[Export ("setUserID:")]
void SetUserID (string userID);
// +(void)track:(NSString *)name properties:(NSDictionary *)properties;
[Static]
[Export ("track:properties:")]
void Track (string name, NSDictionary properties);
// +(void)startWebViewTracking:(id)delegate;
[Static]
[Export ("startWebViewTracking:")]
void StartWebViewTracking (NSObject @delegate);
// +(void)enableCrashReporting;
[Static]
[Export ("enableCrashReporting")]
void EnableCrashReporting ();
// +(void)survey:(NSError **)error;
[Static]
[Export ("survey:")]
void Survey (out NSError error);
// +(void)enableUsabilityTesting;
[Static]
[Export ("enableUsabilityTesting")]
void EnableUsabilityTesting ();
// +(void)setLogLevel:(RPRLogLevel)level;
[Static]
[Export ("setLogLevel:")]
void SetLogLevel (RPRLogLevel level);
// +(void)setPushDeviceToken:(NSData *)pushDeviceToken;
[Static]
[Export ("setPushDeviceToken:")]
void SetPushDeviceToken (NSData pushDeviceToken);
// +(void)setPushDeviceTokenString:(NSString *)pushDeviceToken;
[Static]
[Export ("setPushDeviceTokenString:")]
void SetPushDeviceTokenString (string pushDeviceToken);
// +(void)disableInAppMessageOnActive;
[Static]
[Export ("disableInAppMessageOnActive")]
void DisableInAppMessageOnActive ();
// +(void)showInAppMessage;
[Static]
[Export ("showInAppMessage")]
void ShowInAppMessage ();
// +(void)integrateRtoaster:(NSString *)accountID;
[Static]
[Export ("integrateRtoaster:")]
void IntegrateRtoaster (string accountID);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment