New 12.1 Request Purchase Data help!

Hey everyone,

Does anyone have any insights to the new iAP system for iOS? Particularly to fill in the Request Purchase Data attribute. (See pics) Basically, there are 3 fields to fill out, start index, end index, and callback attribute and I'm not sure exactly what values to enter here...

For the start and end index's I know that start has to be set to 1 and end to last row of the table. BUT! my question is, would i simply use 1 and 3? or would I have to use tableCellValue(table,col,row)...or something else?

any comments welcome!



Best Answer

  • stevejstevej Posts: 435
    edited September 2014 Accepted Answer

    You want to pass in the actual row indexes as the values (1 and 3 in your example). However, the easy way to do it is to pass 1 as the start index and -1 as the end index; that will cause the entire table to be updated, no matter how big the table is.

    The main reason we have the start and end indexes is so you can partially fill in the purchase table; if you have a lot of items for sale, fetching them all may take a noticeable amount of time that you want to avoid. This allows you to, say, have pages of purchases available, where you load in the first few pages, and then while the player is looking at them, load more in the background.

Answers

Sign In or Register to comment.