使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
gpg::StartAdvertisingResult
#include <nearby_connection_types.h>
在此设备上注册的实例的 ID 和名称。
摘要
公共类型
StatusCode
gpg::StartAdvertisingResult::StatusCode
公共属性
local_endpoint_name
std::string gpg::StartAdvertisingResult::local_endpoint_name
要通告的本地端点的人类可读名称(在解析可能发生的任何名称冲突后)。
status
StatusCode gpg::StartAdvertisingResult::status
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# gpg::StartAdvertisingResult Struct Reference\n\ngpg::StartAdvertisingResult\n===========================\n\n`#include \u003cnearby_connection_types.h\u003e`\n\nThe ID and name of an instance registered on this device.\n\nSummary\n-------\n\n| ### Public types ||\n|------------------------------------------------------------------------------------------|---------------------------------------------------------|\n| [StatusCode](#structgpg_1_1_start_advertising_result_1a4e0aca824367d90386adcb1e545df77c) | enum Status code values returned in the `status` field. |\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [local_endpoint_name](#structgpg_1_1_start_advertising_result_1a0c6c43ceadeb3ab43061e7bd3ac05a0c) | `std::string` The human-readable name for the local endpoint being advertised (after resolving any name collisions that may have occurred). |\n| [status](#structgpg_1_1_start_advertising_result_1a99d2f2b38441f0a476818314580a197d) | [StatusCode](/games/services/cpp/api/struct/gpg/start-advertising-result#structgpg_1_1_start_advertising_result_1a4e0aca824367d90386adcb1e545df77c) The status code indicating whether advertising succeeded. |\n\nPublic types\n------------\n\n### StatusCode\n\n```c++\n gpg::StartAdvertisingResult::StatusCode\n``` \nStatus code values returned in the `status` field.\n\nPublic attributes\n-----------------\n\n### local_endpoint_name\n\n```c++\nstd::string gpg::StartAdvertisingResult::local_endpoint_name\n``` \nThe human-readable name for the local endpoint being advertised (after resolving any name collisions that may have occurred). \n\n### status\n\n```c++\nStatusCode gpg::StartAdvertisingResult::status\n``` \nThe status code indicating whether advertising succeeded."]]