Пример #1
0
  public boolean performAsyncActionOnHandler(
      Action action, Handler handler, AbstractCommandListener listener) {
    final IDroneApi droneApi = droneApiRef.get();
    if (isStarted(droneApi)) {
      try {
        droneApi.executeAsyncAction(action, wrapListener(handler, listener));
        return true;
      } catch (RemoteException e) {
        handleRemoteException(e);
      }
    }

    return false;
  }