---
title: "init(transferToken:)"
framework: HomeKit
role: symbol
role_heading: Initializer
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, visionOS 27.2+]
path: "homekit/hmhome/provisionalhomeconnectiondetails/init(transfertoken:)"
---

# init(transferToken:)

Creates a structure that contains the token you need to transfer a temporary home to a person’s home hub.

## Declaration

```swift
init(transferToken: Data)
```

## Parameters

- `transferToken`: An opaque token you need to transfer a temporary home to a person’s home hub.

## Return Value

Return Value The structure that contains the token you need to transfer a temporary home to a person’s home hub.

## See Also

### Creating connection details

- [transferToken](homekit/hmhome/provisionalhomeconnectiondetails/transfertoken.md)
