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
iconIdentifierThe identifier of the icon
sizeThe size of the image to return
colorThe 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
iconIdentifierThe identifier of the icon
sizeThe size of the image to return
colorThe color of the icon image to return
View on GitHub
Install in Dash
HUBIconImageResolver Protocol Reference