จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
gpg::StartAdvertisingResult
#include <nearby_connection_types.h>
รหัสและชื่อของอินสแตนซ์ที่ลงทะเบียนในอุปกรณ์นี้
สรุป
ประเภทสาธารณะ
|
StatusCode
|
enum ค่ารหัสสถานะที่แสดงผลในช่อง status |
แอตทริบิวต์สาธารณะ
|
local_endpoint_name
|
std::string
ชื่อที่มนุษย์อ่านได้ของปลายทางในเครื่องที่โฆษณาอยู่ (หลังจากแก้ปัญหาชื่อที่ตรงกันที่อาจเกิดขึ้นแล้ว)
|
status
|
รหัสสถานะที่ระบุว่าการโฆษณาสำเร็จหรือไม่
|
ประเภทสาธารณะ
StatusCode
gpg::StartAdvertisingResult::StatusCode
ค่ารหัสสถานะที่แสดงผลในช่อง status
แอตทริบิวต์สาธารณะ
local_endpoint_name
std::string gpg::StartAdvertisingResult::local_endpoint_name
ชื่อที่มนุษย์อ่านได้ของปลายทางในเครื่องที่โฆษณาอยู่ (หลังจากแก้ปัญหาชื่อที่ตรงกันที่อาจเกิดขึ้นแล้ว)
สถานะ
StatusCode gpg::StartAdvertisingResult::status
รหัสสถานะที่ระบุว่าการโฆษณาสำเร็จหรือไม่
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],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."]]