public StockingCtrl(ICompressionCtrl compressionCtrl, IVibrator vibratorCtrl, ILED ledCtrlGreen, ILED ledCtrlRed)
 {
     _compressionCtrl = compressionCtrl;
     _vibratorCtrl    = vibratorCtrl;
     _LEDCtrlGreen    = ledCtrlGreen;
     _LEDCtrlRed      = ledCtrlRed;
 }
Exemplo n.º 2
0
        protected override void OnButtonPressed()
        {
            blackFillPaint.Color = SKColors.Red;
            IVibrator vibrator = DependencyService.Get <IVibrator>();

            vibrator.Vibrate();
        }
Exemplo n.º 3
0
 public static void SetVibrationOn(bool on)
 {
     if (on)
     {
         Generate();
     }
     else
     {
         vibrator = null;
     }
 }
Exemplo n.º 4
0
    public static void Generate()
    {
        if (vibrator == null)
        {
            if (vibrator == null)
            {
#if UNITY_EDITOR
                return;
#elif UNITY_ANDROID
                vibrator = new IAndroidVibrator();
#elif UNITY_IOS
                vibrator = new IPhoneVibrator();
#endif
            }
        }
    }
Exemplo n.º 5
0
 /// <summary>
 /// Default class constructor.
 /// </summary>
 public Vibrator()
 {
     _service = DependencyService.Get <IVibrator>();
 }
Exemplo n.º 6
0
 public StockingController(ICompressionCtrl iCompressionCtrl, IVibrator vibrator, ILEDController ledController)
 {
     _compressionCtrl = iCompressionCtrl;
     _vibrator        = vibrator;
     _ledController   = ledController;
 }