ResponseType

View as Markdown

ResponseType

ResponseType tells a completion block where its data came from: the network or the on-device cache. The completion blocks of the fetch and find methods of Entry, Query, Asset, AssetLibrary, and GlobalField receive it as their first argument.

ContentstackDefinitions.h declares the enum as NS_ENUM(NSUInteger, ResponseType). Swift imports it as ResponseType with the cases .CACHE and .NETWORK.