> ## 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.

# LampArrayStatusCallback

> LampArrayStatusCallback

# LampArrayStatusCallback

LampArray のステータス変更イベントに対して、タイトルが定義するコールバックです。この関数は [RegisterLampArrayStatusCallback](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/functions/registerlamparraystatuscallback.md) で登録します。

## 構文

```cpp theme={null}
typedef void (CALLBACK * LampArrayStatusCallback)(
    _In_opt_ void * context,
    LampArrayStatus currentStatus,
    LampArrayStatus previousStatus,
    _In_ ILampArray * lampArray);
```

### パラメーター

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

コールバックに関連する情報を含むオブジェクトへのポインター。このポインターは [RegisterLampArrayStatusCallback](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/functions/registerlamparraystatuscallback.md) に渡されたものです。

*currentStatus*\
Type: [LampArrayStatus](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/enums/lamparraystatus.md)

LampArray の新しいステータスです。

*previousStatus*\
Type: [LampArrayStatus](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/enums/lamparraystatus.md)

LampArray の以前のステータスです。

*lampArray*   \_In\_\
Type: [ILampArray\*](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)

コールバックをトリガーしたデバイスです。

### 戻り値

Type: void

## 解説

この関数の定義は開発者が決定しますが、コールバックが発生するためには関数のパラメーターが一致している必要があります。この関数は、[RegisterLampArrayStatusCallback](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/functions/registerlamparraystatuscallback.md) で登録される LampArray デバイス コールバックを定義するために使用されます。LampArray のステータスが変更されるたびに呼び出される関数を定義します。

## 要件

**ヘッダー:** LampArray.h

**ライブラリ:** xgameplatform.lib

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[Lighting API の概要](https://docs.xbox.com/ja-jp/build/core-features/common/lighting/gc-lighting-toc.md)\
[Lighting の基礎](https://docs.xbox.com/ja-jp/build/core-features/common/lighting/lighting-basics.md)\
[RegisterLampArrayStatusCallback](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/functions/registerlamparraystatuscallback.md)\
[UnregisterLampArrayCallback](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/functions/unregisterlamparraycallback.md)


## Related topics

- [RegisterLampArrayStatusCallback](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/functions/registerlamparraystatuscallback.md)
- [LampArrayStatus 列挙型](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/enums/lamparraystatus.md)
- [LampArrayEnumerationKind 列挙型](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/enums/lamparrayenumerationkind.md)
- [Lighting API リファレンス (API の内容)](https://docs.xbox.com/ja-jp/reference/lighting/gc-reference-lighting-toc.md)
- [LampArrayCallback](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/functions/lamparraycallback.md)
