public void InitializeNativeFunctions(E_NATIVE_ACTION newAct) { if (_currAct == newAct) { return; } _currAct = newAct; initiateAction(_currAct); }
void initializeActivity() { _curActivityMsg = " INITAIALIZE ACTIVITY "; _nativeInitializeComplete = false; _currAct = E_NATIVE_ACTION.NONE; #if UNITY_ANDROID if (Application.platform == RuntimePlatform.Android) { AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); _currActivity = jc.GetStatic <AndroidJavaObject>("currentActivity"); if (null != _currActivity) { this.onestoreIapManager = new AndroidJavaObject("com.skplanet.iap.unity.IapManager", _currActivity, appId); if (onestoreIapManager != null) { if (!onestoreIapManager.Call <bool>("InitPlugin", false)) { // strLabelPayment = "Init Fail"; //strLabelQuery = "Init Fail"; } } } _curActivityMsg = " ADDBRIX PLUGIN INITIALIZE "; IgaworksUnityPluginAOS.InitPlugin(); IgaworksUnityPluginAOS.Common.startApplication(); IgaworksUnityPluginAOS.Common.startSession(); IgaworksUnityPluginAOS.LiveOps.setNotificationOption(IgaworksUnityPluginAOS.AndroidNotificationPriority.PRIORITY_MAX, IgaworksUnityPluginAOS.AndroidNotificationVisibility.VISIBILITY_PUBLIC); //IgaworksUnityPluginAOS.LiveOps.setStackingNotificationOption(true, false, "More events are waiting for you", "See detail", "All events", "For Summary Text"); IgaworksUnityPluginAOS.Common.setUserId(SystemInfo.deviceUniqueIdentifier); IgaworksUnityPluginAOS.LiveOps.initialize(); IgaworksUnityPluginAOS.LiveOps.requestPopupResource(); //°øÁö ¸®¼Ò½º ºÒ·¯¿À±â IgaworksUnityPluginAOS.OnReceiveDeeplinkData = OnRecieveDeepLinkData; //µö¸µÅ©(°áÀç)¿ë À̺¥Æ® ºv·Ï _curActivityMsg = " ADDBRIX PLUGIN INITIALIZE COMPLETE"; //Debug.Log(" !!!!! " + _curActivityMsg ); } #endif //Debug.Log(" !!!!! NATIVEMANAGER INIT PLUGIN !!!!! "); }
void initiateAction(E_NATIVE_ACTION currentAct) { switch (currentAct) { case E_NATIVE_ACTION.NATIVE_DOWNLOAD_IMG: { _imgDownloadManager.Initiate(); break; } case E_NATIVE_ACTION.NATIVE_PUSH_SET_REGIST: { _pushManager.Initiate(); break; } } }