---
title: requestOpenSession()
framework: imagecapturecore
role: symbol
role_heading: Instance Method
path: imagecapturecore/icdevice/requestopensession()
---

# requestOpenSession()

Requests to open a session on the device.

## Declaration

```swift
func requestOpenSession()
```

## Discussion

Discussion Set the receiver’s delegate before calling this method; otherwise, the request is ignored. Once the request to open the session has completed, device(_:didOpenSessionWithError:) is called on the delegate. Execution of the delegate callback occurs on the main thread.

## See Also

### Managing a Device

- [delegate](imagecapturecore/icdevice/delegate.md)
- [ICDeviceDelegate](imagecapturecore/icdevicedelegate.md)
- [hasOpenSession](imagecapturecore/icdevice/hasopensession.md)
- [requestOpenSession(options:completion:)](imagecapturecore/icdevice/requestopensession(options:completion:).md)
- [requestSendMessage(_:outData:maxReturnedDataSize:sendMessageDelegate:didSendMessageSelector:contextInfo:)](imagecapturecore/icdevice/requestsendmessage(_:outdata:maxreturneddatasize:sendmessagedelegate:didsendmessageselector:contextinfo:).md)
- [requestCloseSession()](imagecapturecore/icdevice/requestclosesession().md)
- [requestCloseSession(options:completion:)](imagecapturecore/icdevice/requestclosesession(options:completion:).md)
- [requestEject()](imagecapturecore/icdevice/requesteject().md)
- [requestEject(completion:)](imagecapturecore/icdevice/requesteject(completion:).md)
