> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LampArrayCallback

> Signature du rappel appelé lorsqu'un périphérique LampArray est connecté ou déconnecté; inscrit au moyen de RegisterLampArrayCallback dans l'API d'éclairage du GDK.

# LampArrayCallback

Rappel défini par le titre pour les événements de connexion et de déconnexion d'un LampArray. Cette fonction est inscrite avec [RegisterLampArrayCallback](https://docs.xbox.com/fr-CA/reference/lighting/lamparray/functions/registerlamparraycallback.md).

## Syntaxe

```cpp theme={null}
typedef void (CALLBACK * LampArrayCallback)(
    void * context,
    bool isAttached,
    ILampArray * lampArray);  
```

### Paramètres

*context*   \_In\_opt\_\
Type : void\*

Pointeur vers un objet contenant les informations pertinentes pour le rappel. Ce pointeur a été transmis à [RegisterLampArrayCallback](https://docs.xbox.com/fr-CA/reference/lighting/lamparray/functions/registerlamparraycallback.md).

*isAttached*\
Type : bool

Indique si le LampArray a été connecté au système.

*lampArray*   \_In\_\
Type : ILampArray\*

Appareil qui a déclenché le rappel.

### Valeur de retour

Type : void

## Remarques

La définition de cette fonction est déterminée par le développeur, mais ses paramètres doivent correspondre pour que le rappel se produise. Cette fonction sert à définir le rappel d'appareil LampArray inscrit avec [RegisterLampArrayCallback](https://docs.xbox.com/fr-CA/reference/lighting/lamparray/functions/registerlamparraycallback.md). Elle définit la fonction appelée chaque fois qu'un LampArray est connecté au système ou retiré de celui-ci.

## Configuration requise

**En-tête :** LampArray.h

**Bibliothèque :** xgameplatform.lib

**Plateformes prises en charge :** consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[Vue d'ensemble de l'API d'éclairage](https://docs.xbox.com/fr-CA/build/core-features/common/lighting/gc-lighting-toc.md)\
[Notions de base de l'éclairage](https://docs.xbox.com/fr-CA/build/core-features/common/lighting/lighting-basics.md)\
[RegisterLampArrayCallback](https://docs.xbox.com/fr-CA/reference/lighting/lamparray/functions/registerlamparraycallback.md)\
[UnregisterLampArrayCallback](https://docs.xbox.com/fr-CA/reference/lighting/lamparray/functions/unregisterlamparraycallback.md)


## Related topics

- [RegisterLampArrayCallback](https://docs.xbox.com/fr-CA/reference/lighting/lamparray/functions/registerlamparraycallback.md)
- [UnregisterLampArrayCallback](https://docs.xbox.com/fr-CA/reference/lighting/lamparray/functions/unregisterlamparraycallback.md)
- [Membres de l'API LampArray](https://docs.xbox.com/fr-CA/reference/lighting/lamparray/lamparray_members.md)
- [TrySetLampArrayWorkerThreadAffinityMask](https://docs.xbox.com/fr-CA/reference/lighting/lamparray/functions/trysetlamparrayworkerthreadaffinitymask.md)
- [LampArrayStatusCallback](https://docs.xbox.com/fr-CA/reference/lighting/lamparray/functions/lamparraystatuscallback.md)
