Exemplo n.º 1
0
 /**
  * <summary>
  *   Smoothly changes the brightness of the screen to produce a fade-in or fade-out
  *   effect.
  * <para>
  * </para>
  * </summary>
  * <param name="brightness">
  *   the new screen brightness
  * </param>
  * <param name="duration">
  *   duration of the brightness transition, in milliseconds.
  * </param>
  * <returns>
  *   <c>0</c> if the call succeeds.
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public virtual int fade(int brightness, int duration)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Display connected");
     }
     return(_func.fade(brightness, duration));
 }