code: public void queryInventoryAsync(final boolean querySkuDetails,
                                      @Nullable final List<String> moreItemSkus,
                                      @Nullable final List<String> moreSubsSkus,
                                      @NotNull final IabHelper.QueryInventoryFinishedListener listener) {
          checkSetupDone("queryInventory");
          //noinspection ConstantConditions
          if (listener == null) {
              throw new IllegalArgumentException("Inventory listener must be not null");
          }
          new Thread(new Runnable() {
              public void run() {
                  IabResult result;
                  Inventory inv = null;
                  try {
                      inv = queryInventory(querySkuDetails, moreItemSkus, moreSubsSkus);
                      result = new IabResult(BILLING_RESPONSE_RESULT_OK, "Inventory refresh successful.");
                  } catch (IabException exception) {
                      result = exception.getResult();
                      Logger.e("queryInventoryAsync() Error : ", exception);
                  }
  
                  final IabResult result_f = result;
                  final Inventory inv_f = inv;
                  handler.post(new Runnable() {
                      public void run() {
                          if (setupState == SETUP_RESULT_SUCCESSFUL) {
                              listener.onQueryInventoryFinished(result_f, inv_f);
                          }
                      }
                  });
              }
          }).start();
      }
docs: Queries the inventory. This will query all owned items from the server, as well as
  information on additional skus, if specified. This method may block or take long to execute.
  
  @param querySkuDetails if true, SKU details (price, description, etc) will be queried as well
  as purchase information.
  @param moreItemSkus    additional PRODUCT skus to query information on, regardless of ownership.
  Ignored if null or if querySkuDetails is false.
  @param moreSubsSkus    additional SUBSCRIPTIONS skus to query information on, regardless of ownership.
  Ignored if null or if querySkuDetails is false.