<!--
{
  "availability" : [
    "macOS: 10.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetoothUI",
  "identifier" : "/documentation/IOBluetoothUI/IOBluetoothObjectPushUIController/init(objectPushWith:withFiles:delegate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "IOBluetooth UI"
    ],
    "preciseIdentifier" : "c:objc(cs)IOBluetoothObjectPushUIController(im)initObjectPushWithBluetoothDevice:withFiles:delegate:"
  },
  "title" : "init(objectPushWith:withFiles:delegate:)"
}
-->

# init(objectPushWith:withFiles:delegate:)

Creates and returns a new IOBluetoothObjectPush object

```
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

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.

---

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)