---
title: "init(category:name:eventDuration:location:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inticketedevent/init(category:name:eventduration:location:)"
---

# init(category:name:eventDuration:location:)

Creates a ticketed event object with the specified contents and attributes.

## Declaration

```swift
init(category: INTicketedEventCategory, name: String, eventDuration: INDateComponentsRange, location: CLPlacemark?)
```

## Parameters

- `category`: The type of ticketed event.
- `name`: The name of the event.
- `eventDuration`: The date and time range that indicates the beginning and end of the event.
- `location`: The name and location of the venue or place for the event.

## Return Value

Return Value A new INTicketedEvent object or nil if one can’t be created.
