MaplyImageLoaderReturn

Objective-C

@interface MaplyImageLoaderReturn : MaplyLoaderReturn

Swift

class MaplyImageLoaderReturn : MaplyLoaderReturn

This version of the loader return is used by the MaplyImageLoaderInterpreter.

When image tiles load, the interpeter fills in these contents, which can include any sort of ComponentObject and, of course, images.

  • Initialize with the loader this will be attached to

    Declaration

    Objective-C

    - (id _Nonnull)initWithLoader:(MaplyQuadLoaderBase *_Nonnull)loader;

    Swift

    init(loader: MaplyQuadLoaderBase)
  • Add an image to this loaded return. You can add multiple, but the interpreter should be expecting that

    Declaration

    Objective-C

    - (void)addImageTile:(MaplyImageTile *_Nonnull)image;

    Swift

    func add(_ image: MaplyImageTile)
  • Add a UIImage to the loader return This just adds a MaplyImageTile wrapper around the UIImage.

    Declaration

    Objective-C

    - (void)addImage:(id)image;

    Swift

    func addImage(_ image: Any!)
  • Return an array of Images

    Declaration

    Objective-C

    - (NSArray<MaplyImageTile *> *_Nonnull)getImages;

    Swift

    func getImages() -> [MaplyImageTile]
  • Clear out any images. Presumably to replace them.

    Declaration

    Objective-C

    - (void)clearImages;

    Swift

    func clearImages()
  • If any component objects are associated with the tile, these are them. They need to start disabled. The system will enable and delete them when it is time.

    Declaration

    Objective-C

    - (void)addCompObjs:(NSArray<MaplyComponentObject *> *_Nonnull)compObjs;

    Swift

    func addCompObjs(_ compObjs: [MaplyComponentObject])
  • Return the component objects added for this loader return

    Declaration

    Objective-C

    - (NSArray<MaplyComponentObject *> *_Nonnull)getCompObjs;

    Swift

    func getCompObjs() -> [MaplyComponentObject]
  • Clear out any component objects, presumably to replace them

    Declaration

    Objective-C

    - (void)clearCompObjs;

    Swift

    func clearCompObjs()
  • These component objects are assumed to be overlaid and so only one set will be displayed at a time.

    Declaration

    Objective-C

    - (void)addOvlCompObjs:(NSArray<MaplyComponentObject *> *_Nonnull)compObjs;

    Swift

    func addOvlCompObjs(_ compObjs: [MaplyComponentObject])
  • Return the overlay component objects added for this loader return

    Declaration

    Objective-C

    - (NSArray<MaplyComponentObject *> *_Nonnull)getOvlCompObjs;

    Swift

    func getOvlCompObjs() -> [MaplyComponentObject]
  • Clear out any component objects, presumably to replace them

    Declaration

    Objective-C

    - (void)clearOvlCompObjs;

    Swift

    func clearOvlCompObjs()