Type Method

imageSizeForIntentResponse:

Returns the preferred size for an image to be used with the specified response object.

Declaration

+ (CGSize)imageSizeForIntentResponse:(INIntentResponse *)response;

Parameters

response

The response object that uses the image.

Return Value

The image size preferred by the response object.

Discussion

When a response object includes an image, use this method to get the preferred size of that image. You can use that information to create or load an image of the appropriate size.