---
title: setNotificationTarget
framework: kernel
role: pseudoSymbol
path: kernel/ionetworkdata/1812552-setnotificationtarget
---

# setNotificationTarget

Registers a C function to handle access notifications sent from this object.

## Declaration

```occ
virtual void setNotificationTarget(
 void *target, 
 Action action, 
 void *param = 0); 
```

## Parameters

- `target`: The first parameter passed to the notification handler.
- `action`: A pointer to a C function that will handle the notification. If 0, then notification is disabled.
- `param`: An optional parameter passed to the notification handler.

## Overview

Overview A notification is sent by an IONetworkData object to the registered notification handler, when an access method is called to modify the contents of the data buffer.

## See Also

### Miscellaneous

- [clearBuffer](kernel/ionetworkdata/1812449-clearbuffer.md)
- [free](kernel/ionetworkdata/1812455-free.md)
- [getAccessTypes](kernel/ionetworkdata/1812461-getaccesstypes.md)
- [getBuffer](kernel/ionetworkdata/1812470-getbuffer.md)
- [getBufferType](kernel/ionetworkdata/1812479-getbuffertype.md)
- [getKey](kernel/ionetworkdata/1812486-getkey.md)
- [getNotificationAction](kernel/ionetworkdata/1812491-getnotificationaction.md)
- [getNotificationParameter](kernel/ionetworkdata/1812494-getnotificationparameter.md)
- [getNotificationTarget](kernel/ionetworkdata/1812497-getnotificationtarget.md)
- [getSize](kernel/ionetworkdata/1812500-getsize.md)
- [init](kernel/ionetworkdata/1812508-init.md)
- [read](kernel/ionetworkdata/1812511-read.md)
- [readBytes](kernel/ionetworkdata/1812517-readbytes.md)
- [reset](kernel/ionetworkdata/1812524-reset.md)
- [serialize](kernel/ionetworkdata/1812531-serialize.md)
- [setAccessTypes](kernel/ionetworkdata/1812540-setaccesstypes.md)
- [withExternalBuffer](kernel/ionetworkdata/1812563-withexternalbuffer.md)
- [withInternalBuffer](kernel/ionetworkdata/1812581-withinternalbuffer.md)
- [withNoBuffer](kernel/ionetworkdata/1812601-withnobuffer.md)
- [write](kernel/ionetworkdata/1812620-write.md)
- [writeBytes](kernel/ionetworkdata/1812640-writebytes.md)
