static void n_SetOnConvertListener_Lorbotix_robot_base_DriveAlgorithm_OnConvertListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            DriveAlgorithm __this = Java.Lang.Object.GetObject <DriveAlgorithm> (native__this, JniHandleOwnership.DoNotTransfer);

            global::Orbotix.Robot.Base.DriveAlgorithm.IOnConvertListener p0 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DriveAlgorithm.IOnConvertListener> (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.SetOnConvertListener(p0);
        }
        public virtual void SetOnConvertListener(global::Orbotix.Robot.Base.DriveAlgorithm.IOnConvertListener p0)
        {
            if (id_setOnConvertListener_Lorbotix_robot_base_DriveAlgorithm_OnConvertListener_ == IntPtr.Zero)
            {
                id_setOnConvertListener_Lorbotix_robot_base_DriveAlgorithm_OnConvertListener_ = JNIEnv.GetMethodID(class_ref, "setOnConvertListener", "(Lorbotix/robot/base/DriveAlgorithm$OnConvertListener;)V");
            }

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_setOnConvertListener_Lorbotix_robot_base_DriveAlgorithm_OnConvertListener_, new JValue(p0));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_setOnConvertListener_Lorbotix_robot_base_DriveAlgorithm_OnConvertListener_, new JValue(p0));
            }
        }