static void n_OnArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1, IntPtr native_p2, IntPtr native_p3)
 {
     global::Com.Thalmic.Myo.IDeviceListener __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.IDeviceListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Myo             p0     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Myo> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Arm             p2     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Arm> (native_p2, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.XDirection      p3     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.XDirection> (native_p3, JniHandleOwnership.DoNotTransfer);
     __this.OnArmRecognized(p0, p1, p2, p3);
 }
Пример #2
0
        public static global::Com.Thalmic.Myo.XDirection ValueOf(string p0)
        {
            if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/thalmic/myo/XDirection;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                global::Com.Thalmic.Myo.XDirection __ret = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.XDirection> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, new JValue(native_p0)), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
#pragma warning restore 0649

        public void OnArmRecognized(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Arm p2, global::Com.Thalmic.Myo.XDirection p3)
        {
            var __h = OnArmRecognizedHandler;

            if (__h != null)
            {
                __h(sender, new ArmRecognizedEventArgs(p0, p1, p2, p3));
            }
        }
 public ArmRecognizedEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Arm p2, global::Com.Thalmic.Myo.XDirection p3)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
     this.p3 = p3;
 }
 public void OnArmRecognized(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Arm p2, global::Com.Thalmic.Myo.XDirection p3)
 {
     if (id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_ == IntPtr.Zero)
     {
         id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_ = JNIEnv.GetMethodID(class_ref, "onArmRecognized", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Arm;Lcom/thalmic/myo/XDirection;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3));
 }
Пример #6
0
 public virtual void OnArmRecognized(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Arm p2, global::Com.Thalmic.Myo.XDirection p3)
 {
     if (id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_ == IntPtr.Zero)
     {
         id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_ = JNIEnv.GetMethodID(class_ref, "onArmRecognized", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Arm;Lcom/thalmic/myo/XDirection;)V");
     }
     try {
         if (GetType() == ThresholdType)
         {
             JNIEnv.CallVoidMethod(Handle, id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3));
         }
         else
         {
             JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onArmRecognized", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Arm;Lcom/thalmic/myo/XDirection;)V"), new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3));
         }
     } finally {
     }
 }