Пример #1
0
 private void onUxExceptionEvent(AndroidJavaObject tangoUxEvent)
 {
     if (OnUxExceptionEvent != null)
     {
         Tango.UxExceptionEvent uxEvent = new Tango.UxExceptionEvent();
         uxEvent.type   = (Tango.TangoUxEnums.UxExceptionEventType)tangoUxEvent.Call <int>("getType");
         uxEvent.value  = tangoUxEvent.Call <float>("getValue");
         uxEvent.status = (Tango.TangoUxEnums.UxExceptionEventStatus)tangoUxEvent.Call <int>("getStatus");
         OnUxExceptionEvent(uxEvent);
     }
 }
Пример #2
0
    private void onUxExceptionEvent(AndroidJavaObject tangoUxEvent)
    {
        Tango.UxExceptionEvent uxEvent = new Tango.UxExceptionEvent();
        uxEvent.type   = (Tango.TangoUxEnums.UxExceptionEventType)tangoUxEvent.Call <int>("getType");
        uxEvent.value  = tangoUxEvent.Call <float>("getValue");
        uxEvent.status = (Tango.TangoUxEnums.UxExceptionEventStatus)tangoUxEvent.Call <int>("getStatus");
        if (m_onUxExceptionEventMultithreadedAvailable != null)
        {
            m_onUxExceptionEventMultithreadedAvailable(uxEvent);
        }

        lock (m_lockObject)
        {
            m_tangoUxEvent = uxEvent;
            m_isDirty      = true;
        }
    }
 private void onUxExceptionEvent(AndroidJavaObject tangoUxEvent)
 {
     if (OnUxExceptionEvent != null)
     {
         Tango.UxExceptionEvent uxEvent = new Tango.UxExceptionEvent();
         uxEvent.type = (Tango.TangoUxEnums.UxExceptionEventType)tangoUxEvent.Call<int>("getType");
         uxEvent.value = tangoUxEvent.Call<float>("getValue");
         uxEvent.status = (Tango.TangoUxEnums.UxExceptionEventStatus)tangoUxEvent.Call<int>("getStatus");
         OnUxExceptionEvent(uxEvent);
     }
 }