/** * <summary> * Returns true if the input (considered as binary) is active (detection value is smaller than the specified <c>threshold</c>), and false otherwise. * <para> * </para> * <para> * </para> * </summary> * <returns> * either <c>YProximity.ISPRESENT_FALSE</c> or <c>YProximity.ISPRESENT_TRUE</c>, according to true if * the input (considered as binary) is active (detection value is smaller than the specified * <c>threshold</c>), and false otherwise * </returns> * <para> * On failure, throws an exception or returns <c>YProximity.ISPRESENT_INVALID</c>. * </para> */ public int get_isPresent() { if (_func == null) { throw new YoctoApiProxyException("No Proximity connected"); } // our enums start at 0 instead of the 'usual' -1 for invalid return(_func.get_isPresent() + 1); }