Class

INDateComponentsRange

A span of time.

Declaration

@interface INDateComponentsRange : NSObject

Overview

Use an INDateComponentsRange object to specify date- or time-related information when responding to an intent. For example, a ride service might use this object to specify possible pickup times for the user.

You create date components range objects when providing a response that includes a time span. Use this object to specify a range of times to include in the corresponding response. When displaying the date range information to the user, Siri or Maps formats the information appropriately.

Topics

Initializing a Date Components Range

- initWithStartDateComponents:endDateComponents:

Initializes the object using the specified start and end dates.

- initWithStartDateComponents:endDateComponents:recurrenceRule:

Initializes the date range to a repeating time period.

- initWithEKRecurrenceRule:

Initializes the date range using the specified recurrence rule.

Getting the Date Information

startDateComponents

The start date of the range.

endDateComponents

The end date of the range.

Getting Recurring Date Information

recurrenceRule

The rule for repeating the date range.

- EKRecurrenceRule

Returns an Event Kit recurrence rule that matches the available information.

Relationships

Inherits From

See Also

Date

INRecurrenceRule

An object that describes the pattern to use when repeating an event.