Instance Method

resolveDateCreated(for:with:)

Called when it is time for you to resolve the dates that the photos were taken.

Declaration

optional func resolveDateCreated(for intent: INStartPhotoPlaybackIntent, with completion: @escaping (INDateComponentsRangeResolutionResult) -> Void)

Parameters

intent

The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.

completion

The block to execute with the resolution. You must execute this block at some point during your implementation of this method. This block has no return value and takes the following parameter:

resolutionResult

The object containing the details of your proposed resolution. For successful resolutions, create a resolution with the date range that you are able to search.

Discussion

When resolving the set of dates, always strive toward a successful resolution, but feel free to ask for confirmation if there is a date range that you think yields the intended results. For example, if the user asks for photos from Paris taken in June, but your app only has Paris photos from July, you can ask the user to confirm the revised dates.

See Also

Resolving Details of the Intent

func resolvePeopleInPhoto(for: INStartPhotoPlaybackIntent, with: ([INPersonResolutionResult]) -> Void)

Called when it is time for you to resolve the people in the photos.

func resolveAlbumName(for: INStartPhotoPlaybackIntent, with: (INStringResolutionResult) -> Void)

Called when it is time for you to resolve the name of the photo album containing the photos.