Beispiel #1
0
        public void registerDrinkStateListener(StartDrink startDrink, StopDrink stopDrink)
        {
            drinkStateListener = new DrinkStateListener();
            drinkStateListener.addCallback(startDrink, stopDrink);

            javaDrinkMotion.Call("registerDrinkStateListener", drinkStateListener);
        }
Beispiel #2
0
 public void AddStopDrinkCallBack(StopDrink callCack)
 {
     StopDrinkCallBackEvent += callCack;
 }
Beispiel #3
0
 public void RemoveStopDrinkCallBack(StopDrink callCack)
 {
     StopDrinkCallBackEvent -= callCack;
 }
Beispiel #4
0
 public void registerDrinkStateListener(StartDrink startDrink, StopDrink stopDrink)
 {
     drinkMotion.registerDrinkStateListener(startDrink, stopDrink);
 }
 public void addCallback(StartDrink startDrink, StopDrink stopDrink)
 {
     mStartDrink = startDrink;
     mStopDrink  = stopDrink;
 }