ios drive sdk | How do I check each ticket, then cancel it? e.g. if it has tag = 1, I need to cancel it

57 Views Asked by At

How do I check each ticket, then cancel it? e.g. if it has tag = 1, I need to cancel it. Does the google API have a list of tickets under drive service? And how do I add a tag or similar property without changing the ticket class?

1

There are 1 best solutions below

0
grobbins On

The service object does not keep a list of outstanding tickets; your app should keep an array of the tickets.

(The fetcher service object used by the API service object does have a list of outstanding fetchers, and the tickets that issued each fetcher are available via a ticket category method But it's still best if your app just keeps an array of the tickets that it cares about.)

Each ticket can have properties set via setProperty:forKey: and accessed with propertyForKey: