Page Summary
-
GMSTileReceiveris a protocol used byGMSTileLayerto handle tile requests. -
It provides a callback mechanism,
receiveTileWithX:y:zoom:image:, for delivering tile images. -
The callback can be invoked immediately or at a later time.
-
The callback method takes the tile's coordinates (x, y, zoom) and the image as parameters.
GMSTileReceiver
@protocol GMSTileReceiver <NSObject>GMSTileReceiver is provided to GMSTileLayer when a tile request is made, allowing the
callback to be later (or immediately) invoked.
-
Declaration
Swift
func receiveTileWith(x: UInt, y: UInt, zoom: UInt, image: UIImage?)Objective-C
- (void)receiveTileWithX:(NSUInteger)x y:(NSUInteger)y zoom:(NSUInteger)zoom image:(nullable UIImage *)image;