The error that has been shown
error: incompatible types: List<String> cannot be converted to YailList
[javac] GotProductDetails(listOfProductDetails);
@SimpleFunction(description="Get Product Details.")
public void ProductDetails(ArrayList<String> listOfProductIds) {
List<SkuDetails> sku = bp.getPurchaseListingDetails(listOfProductIds);
if (sku != null) {
List<String> listOfProductDetails = new ArrayList<String>();
for(SkuDetails item : sku) {
listOfProductDetails.add(item.productId + "," + item.title + "," + item.description + "," + item.priceText);
}
GotProductDetails(listOfProductDetails);
}
// Log.d(LOG_TAG, "ProductDetails: " + productId);
}
@SimpleEvent(description = "Got Product Details")
public void GotProductDetails(List<String> details){
EventDispatcher.dispatchEvent(this, "GotProductDetails", details);
}
@Override
public void onPurchaseHistoryRestored() {
List<String> ownedProducts = new ArrayList<String>();
List<String> ownedSubscriptions = new ArrayList<String>();
if (bp.listOwnedProducts() != null) {
for(String sku : bp.listOwnedProducts()) {
ownedProducts.add(sku);
}
}
if (bp.listOwnedSubscriptions() != null) {
for(String subs : bp.listOwnedSubscriptions()) {
ownedSubscriptions.add(subs);
}
}
GotOwnedPurchases(ownedProducts, ownedSubscriptions);
}
@SimpleEvent(description = "Got Owned Purchases")
public void GotOwnedPurchases(List<String> ownedProducts, List<String> ownedSubscriptions){
EventDispatcher.dispatchEvent(this, "GotOwnedPurchases", ownedProducts, ownedSubscriptions);
}