Project: titanium
Issue TIMOB-23390: TIAPI: Cannot paginate Ti.Contacts.getAllPeople()
The Ti.Contacts.getAllPeople() method allows for a limit to be set on the number of people to retrieve in one call, but it does not allow for an offset, or "page", number to be provided in order to grab the next set of the same size. For example, if I want to grab 200 contacts at a time, I would do Ti.Contacts.getAllPeople(200). Currently, I am unable to iterate over the contacts in sets of 200, because that would require the capability to provide a parameter like: Ti.Contacts.getAllPeople(200, 1); Ti.Contacts.getAllPeople(200, 2); Ti.Contacts.getAllPeople(200, x); According to @fokke in the related bug (https://jira.appcelerator.org/browse/TIMOB-20279), see https://github.com/appcelerator/titanium_mobile/blob/415bd6c66dcc55b1a59a59574f3babd3c3a84ede/android/modules/contacts/src/java/ti/modules/titanium/contacts/ContactsApiLevel5.java#L224-L235 for more info on this issue. Resolve this bug would provide a workaround for resolving TIMOB-20279.
Story points: 3