Exemplo n.º 1
0
 public void SetDeviceInfoCallbackListener(Action <String> onGetAdvertisingIdComplete, Action <String> onGetAdvertisingIdFail)
 {
             #if UNITY_ANDROID
     if (Application.platform == RuntimePlatform.Android)
     {
         DeviceInfoCallback deviceInfoCallback = new DeviceInfoCallback();
         deviceInfoCallback.onGetAdvertisingIdComplete = onGetAdvertisingIdComplete;
         deviceInfoCallback.onGetAdvertisingIdFail     = onGetAdvertisingIdFail;
         jo.CallStatic("setDeviceInfoCallbackListener", deviceInfoCallback);
     }
     else
     {
         AUP.Utils.Message(TAG, "warning: must run in actual android device");
     }
             #endif
 }
 public void SetDeviceInfoCallbackListener(Action <String>onGetAdvertisingIdComplete,Action <String>onGetAdvertisingIdFail)
 {
     #if UNITY_ANDROID
     if(Application.platform == RuntimePlatform.Android){
         DeviceInfoCallback deviceInfoCallback = new DeviceInfoCallback();
         deviceInfoCallback.onGetAdvertisingIdComplete = onGetAdvertisingIdComplete;
         deviceInfoCallback.onGetAdvertisingIdFail = onGetAdvertisingIdFail;
         jo.CallStatic("setDeviceInfoCallbackListener",deviceInfoCallback);
     }else{
         Utils.Message(TAG,"warning: must run in actual android device");
     }
     #endif
 }
Exemplo n.º 3
0
 public static extern UInt32 LPR_Init(IntPtr hWnd, IntPtr pUserData, DeviceInfoCallback fucDeviceInfo, DeviceStatusCallback fucDeviceStatus,VehicleDataCallback fucVehicleData, JPGStreamCallBack fucJPGStream);
Exemplo n.º 4
0
 public static extern UInt32 LPR_Init(IntPtr hWnd, IntPtr pUserData, DeviceInfoCallback fucDeviceInfo, DeviceStatusCallback fucDeviceStatus, VehicleDataCallback fucVehicleData, JPGStreamCallBack fucJPGStream);
Exemplo n.º 5
0
 //初始化相机相关变量
 public void initCamera()
 {
     DeviceTable = new Hashtable();
     //初始化动态库
     DeviceInfofuc = new DeviceInfoCallback(fucDeviceInfo);
     VehicleDatafuc = new VehicleDataCallback(fucVehicleData);
     JPGStreamfuc = new JPGStreamCallBack(fucJPGStream);
     DeviceStatusfuc = new DeviceStatusCallback(fucDeviceStatus);
     LPRSDK.LPR_IsWriteLog(true);
     LPRSDK.LPR_Init(this.Handle, IntPtr.Zero, DeviceInfofuc, DeviceStatusfuc, VehicleDatafuc, JPGStreamfuc);
     LPRSDK.LPR_ScanDevice();
 }