简体   繁体   中英

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

How do I check each ticket, then cancel it? eg 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?

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:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM