Stephen Johnson
Stephen Johnson

Reputation: 5121

Is [WkInterfaceDevice addCachedImage:] Thread Safe?

Can I add an image to the WkInterfaceDevice image cache from a background thread? I couldn't find any documentation if the API was safe to use in a background thread.

Thanks! Stephen

Upvotes: 3

Views: 427

Answers (1)

Mike Swanson
Mike Swanson

Reputation: 3347

According to an Apple employee on the Developer Forums, you can use addCachedImage: from a background thread. In fact, that's how I use it in my app.

Upvotes: 1

Related Questions