---
title: CopyDataAvailableHandler
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iodataqueuedispatchsource/copydataavailablehandler
---

# CopyDataAvailableHandler

A private method that the dispatch source uses to detect enqueued data.

## Declaration

```occ
virtual kern_return_t CopyDataAvailableHandler(OSAction **action);
```

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## See Also

### Performing Internal Tasks

- [CopyDataServicedHandler](driverkit/iodataqueuedispatchsource/copydataservicedhandler.md)
- [CopyMemory](driverkit/iodataqueuedispatchsource/copymemory.md)
- [CheckForWork](driverkit/iodataqueuedispatchsource/checkforwork.md)
