public AndroidConfigListener(ICsTvListener listener) : base("tv.chushou.playsdklib.constants.CSConfigCallback") { this.listener = listener; }
public void initialize(ICsTvListener callback) { ClientLogger.Error("^^^^^^^^^^^^^^^^^^^^^^CsTvInterface initialize"); AndroidJavaClass androidJavaClass = new AndroidJavaClass("tv.chushou.playsdk.ChuShouTVSDK"); ClientLogger.Error("^^^^^^^^^^^^^^^^^^^^^^SDKClz:" + androidJavaClass); this.mSDK = androidJavaClass.CallStatic <AndroidJavaObject>("instance", new object[0]); ClientLogger.Error("^^^^^^^^^^^^^^^^^^^^^^mSDK:" + this.mSDK); AndroidJavaClass androidJavaClass2 = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); AndroidJavaObject @static = androidJavaClass2.GetStatic <AndroidJavaObject>("currentActivity"); this.mSDKConfigLister = new CsTvInterface.AndroidConfigListener(callback); AndroidJavaClass androidJavaClass3 = new AndroidJavaClass("tv.chushou.playsdklib.constants.CSGlobalConfig"); AndroidJavaObject androidJavaObject = new AndroidJavaObject("tv.chushou.playsdklib.constants.CSGlobalConfig", new object[] { this.mSDKConfigLister }); androidJavaObject.Set <AndroidJavaObject>("mContext", @static); androidJavaObject.Set <string>("mAppkey", "a18f55afe9b38e4d"); androidJavaObject.Set <string>("mAppSecret", "9a36521971e058078b5374b22f3a9a90"); androidJavaObject.Set <AndroidJavaObject>("mDebug", new AndroidJavaObject("java.lang.Boolean", new object[] { false })); string static2 = androidJavaClass3.GetStatic <string>("KEY_OPENCLOSE_LOG"); string static3 = androidJavaClass3.GetStatic <string>("KEY_OPENCLOSE_GIFT"); string static4 = androidJavaClass3.GetStatic <string>("KEY_OPENCLOSE_CP_CURRENCY"); string static5 = androidJavaClass3.GetStatic <string>("KEY_OPENCLOSE_SEARCH"); androidJavaObject.Call("setOption", new object[] { static2, new AndroidJavaObject("java.lang.Boolean", new object[] { false }) }); androidJavaObject.Call("setOption", new object[] { static3, new AndroidJavaObject("java.lang.Boolean", new object[] { false }) }); androidJavaObject.Call("setOption", new object[] { static4, new AndroidJavaObject("java.lang.Boolean", new object[] { false }) }); androidJavaObject.Call("setOption", new object[] { static5, new AndroidJavaObject("java.lang.Boolean", new object[] { false }) }); this.mSDK.Call("initialize", new object[] { @static, androidJavaObject }); ClientLogger.Error("^^^^^^^^^^^^^^^^^^^^^^CsTvInterface initialize end"); }
public void initialize(ICsTvListener callback) { }