HUBIconImageResolver

@protocol HUBIconImageResolver <NSObject>

Protocol implemented by objects that can resolve images from icon identifiers

You conform to this protocol in a custom object and supply it when setting up your application’s HUBManager. The Hub Framework uses this object whenever an image needs to be resolved from a HUBIcon instance.

  • Resolve an image for component icon

    Declaration

    Objective-C

    - (nullable UIImage *)
    imageForComponentIconWithIdentifier:(nonnull NSString *)iconIdentifier
                                   size:(CGSize)size
                                  color:(nonnull UIColor *)color;

    Parameters

    iconIdentifier

    The identifier of the icon

    size

    The size of the image to return

    color

    The color of the icon image to return

  • Resolve an image for a placeholder icon

    Declaration

    Objective-C

    - (nullable UIImage *)
    imageForPlaceholderIconWithIdentifier:(nonnull NSString *)iconIdentifier
                                     size:(CGSize)size
                                    color:(nonnull UIColor *)color;

    Parameters

    iconIdentifier

    The identifier of the icon

    size

    The size of the image to return

    color

    The color of the icon image to return