<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INGetUserCurrentRestaurantReservationBookingsIntent/init(restaurant:reservationIdentifier:maximumNumberOfResults:earliestBookingDateForResults:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INGetUserCurrentRestaurantReservationBookingsIntent(im)initWithRestaurant:reservationIdentifier:maximumNumberOfResults:earliestBookingDateForResults:"
  },
  "title" : "init(restaurant:reservationIdentifier:maximumNumberOfResults:earliestBookingDateForResults:)"
}
-->

# init(restaurant:reservationIdentifier:maximumNumberOfResults:earliestBookingDateForResults:)

Initializes the intent object with the specified reservation information.

```
init(restaurant: INRestaurant?, reservationIdentifier: String?, maximumNumberOfResults: NSNumber?, earliestBookingDateForResults: Date?)
```

## Parameters

`restaurant`

A restaurant to use as a filter when searching for reservations.

`reservationIdentifier`

An identifier to use when searching for the user’s reservations.

`maximumNumberOfResults`

The maximum number of reservations to include in your response object.

`earliestBookingDateForResults`

The earliest date to be associated with any reservations.

## Return Value

An initialized intent object or `nil` if the object could not be created.

## Discussion

Normally, you do not create instances of this class yourself. Instead, SiriKit creates instances when Maps asks you to provide the user’s current list of reservations. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)