Image data inside an Intents extension or Intents UI extension.
SDKs
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
Framework
- Intents
Declaration
class INImage : NSObject
Overview
An INImage
object is a wrapper for image data that you include in a response to an intent. When providing a response to an intent, you must specify any image parameters using instances of this class. You can create INImage
objects from images you have locally in your extension or located on a remote server. Image objects support the same formats as the underlying platform, but use PNG images whenever possible.
When confirming or handling an intent, you provide a response object with details about how your app handles that intent. When a response object contains an image, use the image
method of this class to determine the required image size, and then create an instance of this class with the corresponding image data.