| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SDKUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 23, 29, 19); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 23, 29, 20); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "InstallAPK", _m_InstallAPK); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatfromCheckIDOK", _g_get_onFreePlatfromCheckIDOK); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatfromDoIDAuthenticationOk", _g_get_onFreePlatfromDoIDAuthenticationOk); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnBatteryLevelChanged", _s_set_OnBatteryLevelChanged); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "ChannelPlatform", _s_set_ChannelPlatform); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnBatteryLevelChanged", _s_set_OnBatteryLevelChanged); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnChargingTypeChanged", _s_set_OnChargingTypeChanged); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnDeviceInfoChanged", _s_set_OnDeviceInfoChanged); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnNetworkStatusChanged", _s_set_OnNetworkStatusChanged); |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_ChannelPlatform(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); |
| | | SDKUtility.E_ChannelPlatform gen_value;translator.Get(L, 2, out gen_value); |
| | | gen_to_be_invoked.ChannelPlatform = gen_value; |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_OnBatteryLevelChanged(RealStatePtr L) |
| | | { |
| | | try { |