A callback function that moves the current position in the data stream back to the beginning.
SDKs
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Graphics
Declaration
typedef void (*CGDataProviderRewindCallback)(void *info);
Parameters
info
A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to
CGData
.Provider Create
Discussion
When Core Graphics needs to read from the beginning of the provider’s data stream, your function is called.
For information on how to associate your callback function with a data provider, see CGData
and CGData
.