Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @NativeClass
- public class AppsFlyerTracker extends NSObject {
- interface AppsFlyerTrackerDelegate {
- // - (void) onConversionDataReceived:(NSDictionary*) installData;
- @Method(selector = "onConversionDataReceived:")
- void onConversionDataReceived(NSDictionary installData);
- // - (void) onConversionDataRequestFailure:(NSError *)error;
- @Method(selector = "onConversionDataRequestFailure:")
- void onConversionDataRequestFailure(NSError error);
- // - (void) onAppOpenAttribution:(NSDictionary*) attributionData;
- @Method(selector = "onAppOpenAttribution:")
- void onAppOpenAttribution(NSDictionary attributionData);
- // - (void) onAppOpenAttributionFailure:(NSError *)error;
- @Method(selector = "onAppOpenAttributionFailure:")
- void onAppOpenAttributionFailure(NSError error);
- }
- // @property(nonatomic, assign) NSObject<GADBannerViewDelegate> *delegate
- // When binding delegate properties or other weak/assign properties, we need to retain a strong reference of them, otherwise we will get memory issues and app crashes:
- //
- // @Property(selector = "delegate")
- // public native GADBannerViewDelegate getDelegate();
- //
- // @Property(selector = "setDelegate:", strongRef = true)
- // public native void setDelegate(GADBannerViewDelegate delegate);
- /* Use this property to set your AppsFlyer's dev key. */
- // @property (nonatomic, strong, setter=setAppsFlyerDevKey:) NSString *appsFlyerDevKey;
- @Property(selector = "appsFlyerDevKey")
- public native String getAppsFlyerDevKey();
- @Property(selector = "setAppsFlyerDevKey:", strongRef = true)
- public native void setAppsFlyerDevKey(String appsFlyerDevKey);
- /* Use this property to set your app's Apple ID (taken from the app's page on iTunes Connect) */
- // @property (nonatomic, strong, setter=setAppleAppID:) NSString *appleAppID;
- @Property(selector = "appleAppID")
- public native String getAppleAppID();
- @Property(selector = "setAppleAppID:", strongRef = true)
- public native void setAppleAppID(String appleAppID);
- //+(AppsFlyerTracker*) sharedTracker;
- @Method(selector = "sharedTracker:")
- public static native AppsFlyerTracker sharedTracker();
- ///* Track application launch*/
- // - (void) trackAppLaunch;
- @Method(selector = "trackAppLaunch:")
- public native void trackAppLaunch();
- /*
- * Use this method to track an events with mulitple values. See AppsFlyer's documentation for details.
- *
- */
- // - (void) trackEvent:(NSString *)eventName withValues:(NSDictionary*)values;
- @Method(selector = "trackEvent:values")
- public native void trackEvent(NSString eventName, NSDictionary values);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement