Beispiel #1
0
        private HelpshiftInternalLogger()
        {
            // Register for async worker.
            HelpshiftWorker.getInstance().registerClient("HelpshiftInternalLogger", this);

            // Register for dex load listener.
            HelpshiftDexLoader.getInstance().registerListener(this);
        }
 private static void initLogger()
 {
     if (HelpshiftAndroidLog.logger == null)
     {
         HelpshiftWorker.getInstance().registerClient("helpshiftandroidlog", helpshiftAndroidLog);
         HelpshiftDexLoader.getInstance().registerListener(helpshiftAndroidLog);
     }
 }
Beispiel #3
0
 public static HelpshiftDexLoader getInstance()
 {
     if (dexLoader == null)
     {
         dexLoader = new HelpshiftDexLoader();
     }
     return(dexLoader);
 }
Beispiel #4
0
        public HelpshiftCampaignsAndroid()
        {
            AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");

            this.currentActivity = jc.GetStatic <AndroidJavaObject>("currentActivity");
            HelpshiftDexLoader.getInstance().registerListener(this);
            HelpshiftWorker.getInstance().registerClient("campaigns", this);
        }
 public HelpshiftAndroid()
 {
     this.jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
     this.currentActivity    = jc.GetStatic <AndroidJavaObject>("currentActivity");
     this.application        = currentActivity.Call <AndroidJavaObject>("getApplication");
     this.hsUnityAPIDelegate = new AndroidJavaClass("com.helpshift.supportCampaigns.UnityAPIDelegate");
     HelpshiftWorker.getInstance().registerClient("support", this);
     HelpshiftDexLoader.getInstance().loadDex(this, application);
     hsInternalLogger = HelpshiftInternalLogger.getInstance();
 }
 public void resolveAndCallApi(string methodIdentifier, string apiName, object[] args)
 {
     if (methodIdentifier.Equals("hsInboxApiCall"))
     {
         hsInboxJavaInstance.Call(apiName, args);
     }
     else if (methodIdentifier.Equals("initializeInboxInstance"))
     {
         // Initialize the java Inbox instance
         hsInboxJavaInstance = HelpshiftDexLoader.getInstance().getHSDexLoaderJavaClass().
                               CallStatic <AndroidJavaObject>(apiName);
     }
 }
 public void onDexLoaded()
 {
     hsHelpshiftClass = HelpshiftDexLoader.getInstance().getHSDexLoaderJavaClass().CallStatic <AndroidJavaObject>("getHelpshiftUnityAPIInstance");
     hsSupportClass   = HelpshiftDexLoader.getInstance().getHSDexLoaderJavaClass().CallStatic <AndroidJavaObject>("getHelpshiftSupportInstance");
 }
 public void onDexLoaded()
 {
     HelpshiftAndroidLog.logger = HelpshiftDexLoader.getInstance().getHSDexLoaderJavaClass().CallStatic <AndroidJavaObject>("getHelpshiftLogInstance");
 }
Beispiel #9
0
 public void onDexLoaded()
 {
     // Load instance of Logger from java.
     hsInternalLogger = HelpshiftDexLoader.getInstance().getHSDexLoaderJavaClass().CallStatic <AndroidJavaObject>("getHSLoggerInstance");
 }
 public HelpshiftInboxAndroid()
 {
     HelpshiftDexLoader.getInstance().registerListener(this);
     HelpshiftWorker.getInstance().registerClient("inbox", this);
 }
Beispiel #11
0
 public void onDexLoaded()
 {
     hsCampaignsClass = HelpshiftDexLoader.getInstance().getHSDexLoaderJavaClass().CallStatic <AndroidJavaObject>("getHelpshiftCampaignsInstance");
 }