---
title: "init(objectPushWith:withFiles:delegate:)"
framework: IOBluetooth UI
role: symbol
role_heading: Initializer
platforms: [macOS 10.2+]
path: "iobluetoothui/iobluetoothobjectpushuicontroller/init(objectpushwith:withfiles:delegate:)"
---

# init(objectPushWith:withFiles:delegate:)

Creates and returns a new IOBluetoothObjectPush object

## Declaration

```swift
init!(objectPushWith inDevice: IOBluetoothDevice!, withFiles inFiles: [Any]!, delegate inDelegate: Any!)
```

## Parameters

- `inDevice`: The remote device to send the files to
- `inFiles`: An array of file paths to send
- `inDelegate`: A delegate object that implements the single method above. If no delegate is specified this object will release itself when the transaction is complete.

## Discussion

Discussion The event delegate should implement a single delegate method: (void) objectPushComplete: (IOBluetoothObjectPushUIController*) inPusher The method will be called when the transaction is complete and should be used to release the push object by the delegate. If no delegate is set the object will release itself when the transfer is finished.
