the wheels do not need to retract , a weight on wheels system can work on oleo extension, ie as the shock strut extends on rotation the switch makes, on touchdown the strut compresses and the switch breaks, a proximity switch on one of the leg torque link is probably the easiest way to go