<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INFlight/init(airline:flightNumber:boardingTime:flightDuration:departureAirportGate:arrivalAirportGate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INFlight(im)initWithAirline:flightNumber:boardingTime:flightDuration:departureAirportGate:arrivalAirportGate:"
  },
  "title" : "init(airline:flightNumber:boardingTime:flightDuration:departureAirportGate:arrivalAirportGate:)"
}
-->

# init(airline:flightNumber:boardingTime:flightDuration:departureAirportGate:arrivalAirportGate:)

Creates a new object containing information about a flight.

```
init(airline: INAirline, flightNumber: String, boardingTime: INDateComponentsRange?, flightDuration: INDateComponentsRange, departureAirportGate: INAirportGate, arrivalAirportGate: INAirportGate)
```

## Parameters

`airline`

The airline on which the user is flying.

`flightNumber`

The number of the flight. Flight numbers are specific to each airline.

`boardingTime`

The date and time during which the flight boards.

`flightDuration`

The date and time range for the departure and arrival times for the flight.

`departureAirportGate`

The gate from which the flight departs.

`arrivalAirportGate`

The gate at which the flight arrives.

## Return Value

A new [`INFlight`](/documentation/Intents/INFlight) object or `nil` if one can’t be created.

---

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)