public void registerDrinkStateListener(StartDrink startDrink, StopDrink stopDrink) { drinkStateListener = new DrinkStateListener(); drinkStateListener.addCallback(startDrink, stopDrink); javaDrinkMotion.Call("registerDrinkStateListener", drinkStateListener); }
public void AddStopDrinkCallBack(StopDrink callCack) { StopDrinkCallBackEvent += callCack; }
public void RemoveStopDrinkCallBack(StopDrink callCack) { StopDrinkCallBackEvent -= callCack; }
public void registerDrinkStateListener(StartDrink startDrink, StopDrink stopDrink) { drinkMotion.registerDrinkStateListener(startDrink, stopDrink); }
public void addCallback(StartDrink startDrink, StopDrink stopDrink) { mStartDrink = startDrink; mStopDrink = stopDrink; }