Add product files to a ds_list.


GML Code Example

iap_product_files(purchase_id, ds_list);

Argument Description
purchase_id This can either be the Apple Store/Google Play id string, an URL id, or an index into the available purchases ds_list.
ds_list The ds_list that will store the product information.

Returns: N/A


WARNING! This function has been deprecated.

With this function you can generate a ds_list containing all the files associated with the given product id.

NOTE: The ds_list used is not created by the function, meaning that you must create it previously and remove it again from memory when not in use using the appropriate function.


GML Code Example

if iap_product_status(p_id) == "Purchased"
    var list, i;
    list = ds_list_create();
    iap_product_files(p_id, list);
    for (i = 0; i < ds_list_size(list); i += 1)
       draw_text(x, y + (i * 32), ds_list_find_value(list, i));

The above code checks the previously stored product id to see if it has been purchased, and if it has it then creates and displays a list of product files that have been downloaded.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here