TTStaticImageDelegate
Objective-C
@protocol TTStaticImageDelegate
Swift
protocol TTStaticImageDelegate
TTStaticImageDelegate
-
Method responsible to handle static image response when static image returns image. Within this callback user will obtain Response populated with image.
Declaration
Objective-C
- (void)staticImage:(TTStaticImage *_Nonnull)staticImage completedWithImage:(id)image;
Swift
func staticImage(_ staticImage: TTStaticImage, completedWithImage image: Any!)
Parameters
staticImage
Object type TTStaticImage.
image
Object type UIImage.
-
Method responsible to static image response when static image service returns error. Within this callback user will obtain static image error containing a Throwable fail reason
Declaration
Objective-C
- (void)staticImage:(TTStaticImage *_Nonnull)staticImage failedWithError:(id)error;
Swift
func staticImage(_ staticImage: TTStaticImage, failedWithError error: Any!)
Parameters
staticImage
Object type TTStaticImage.
error
Object type TTResponseError.