---
title: "init(obexSession:)"
framework: IOBluetooth
role: symbol
role_heading: Initializer
path: "iobluetooth/obexfiletransferservices/init(obexsession:)-8xm7d"
---

# init(obexSession:)

Create a new OBEXFileTransferServices object

## Declaration

```swift
init!(obexSession inOBEXSession: IOBluetoothOBEXSession!)
```

## Parameters

- `inOBEXSession`: A valid IOBluetoothOBEXSession

## Return Value

Return Value A newly created OBEXFileTransferServices object on success, nil on failure

## Discussion

Discussion This object must be constructed with a valid IOBluetoothOBEXSession. The given IOBluetoothOBEXSession does not need to be connected to the remote server. OBEXFileTransferServices can be manually connected through the provided connection methods.
