コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
gpg::CaptureOverlayStateListenerHelper
#include <capture_overlay_state_listener_helper.h>
ICaptureOverlayStateListener インターフェース全体を定義せずに、SDK に ICaptureOverlayStateListener コールバックを提供するために使用できるヘルパーを定義します。
概要
このオブジェクトで構成されたコールバックは、VideoManager の説明に従って Video API によって呼び出されます。コールバックが明示的に設定されていない場合、何も実行されません。
パブリック タイプ
OnCaptureOverlayStateChangedCallback
std::function< void(VideoCaptureOverlayState overlay_state)> OnCaptureOverlayStateChangedCallback
OnCaptureOverlayStateChangedCallback
は、動画キャプチャ オーバーレイの状態が変化したときに呼び出されます。
パブリック関数
CaptureOverlayStateListenerHelper
CaptureOverlayStateListenerHelper()
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# gpg::CaptureOverlayStateListenerHelper Class Reference\n\ngpg::CaptureOverlayStateListenerHelper\n======================================\n\n`#include \u003ccapture_overlay_state_listener_helper.h\u003e`\n\nDefines a helper which can be used to provide [ICaptureOverlayStateListener](/games/services/cpp/api/class/gpg/i-capture-overlay-state-listener#classgpg_1_1_i_capture_overlay_state_listener) callbacks to the SDK without defining the full [ICaptureOverlayStateListener](/games/services/cpp/api/class/gpg/i-capture-overlay-state-listener#classgpg_1_1_i_capture_overlay_state_listener) interface.\n\nSummary\n-------\n\nCallbacks configured on this object will be invoked by the Video APIs as described in [VideoManager](/games/services/cpp/api/class/gpg/video-manager#classgpg_1_1_video_manager). Callbacks not explicitly set will do nothing.\n\n| ### Constructors and Destructors ||\n|---|---|\n| [CaptureOverlayStateListenerHelper](#classgpg_1_1_capture_overlay_state_listener_helper_1aa26ee013824e0860204d116f6936ec00)`()` ||\n| [CaptureOverlayStateListenerHelper](#classgpg_1_1_capture_overlay_state_listener_helper_1aecaf9e0d1448e531b913d62bf0d0c743)`(std::shared_ptr\u003c `[CaptureOverlayStateListenerHelperImpl](/games/services/cpp/api/class/gpg/capture-overlay-state-listener-helper#classgpg_1_1_capture_overlay_state_listener_helper_1ada1a3968e0e8823a87dcc090e606722d)` \u003e impl)` Constructs a [CaptureOverlayStateListenerHelper](/games/services/cpp/api/class/gpg/capture-overlay-state-listener-helper#classgpg_1_1_capture_overlay_state_listener_helper) from a `shared_ptr` to a `CaptureOverlayStateListenerHelperImpl`. ||\n\n| ### Public types ||\n|--------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [OnCaptureOverlayStateChangedCallback](#classgpg_1_1_capture_overlay_state_listener_helper_1a8495775a99a242e17d467ed7ce626d44) | typedef `std::function\u003c void(`[VideoCaptureOverlayState](/games/services/cpp/api/namespace/gpg#namespacegpg_1ab33e17bd3d8f618360755e2c73a2b9b0)` overlay_state)\u003e` `OnCaptureOverlayStateChangedCallback` is called when the video capture overlay changes state. |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [SetOnCaptureOverlayStateChangedCallback](#classgpg_1_1_capture_overlay_state_listener_helper_1ab3a2ea2eb5abd24167f0b7f53bef96a4)`(`[OnCaptureOverlayStateChangedCallback](/games/services/cpp/api/class/gpg/capture-overlay-state-listener-helper#classgpg_1_1_capture_overlay_state_listener_helper_1a8495775a99a242e17d467ed7ce626d44)` callback)` | [CaptureOverlayStateListenerHelper](/games/services/cpp/api/class/gpg/capture-overlay-state-listener-helper#classgpg_1_1_capture_overlay_state_listener_helper)` &` Set the OnCaptureOverlayStateChangedCallback. |\n\nPublic types\n------------\n\n### OnCaptureOverlayStateChangedCallback\n\n```c++\nstd::function\u003c void(VideoCaptureOverlayState overlay_state)\u003e OnCaptureOverlayStateChangedCallback\n``` \n`OnCaptureOverlayStateChangedCallback` is called when the video capture overlay changes state.\n\nPublic functions\n----------------\n\n### CaptureOverlayStateListenerHelper\n\n```c++\n CaptureOverlayStateListenerHelper()\n``` \n\n### CaptureOverlayStateListenerHelper\n\n```c++\n CaptureOverlayStateListenerHelper(\n std::shared_ptr\u003c CaptureOverlayStateListenerHelperImpl \u003e impl\n)\n``` \nConstructs a [CaptureOverlayStateListenerHelper](/games/services/cpp/api/class/gpg/capture-overlay-state-listener-helper#classgpg_1_1_capture_overlay_state_listener_helper) from a `shared_ptr` to a `CaptureOverlayStateListenerHelperImpl`.\n\nIntended for internal use by the API. \n\n### SetOnCaptureOverlayStateChangedCallback\n\n```c++\nCaptureOverlayStateListenerHelper & SetOnCaptureOverlayStateChangedCallback(\n OnCaptureOverlayStateChangedCallback callback\n)\n``` \nSet the OnCaptureOverlayStateChangedCallback."]]