PartyNetwork::GetDevices
Gets the devices in this network.
Syntax
PartyError GetDevices(
uint32_t* deviceCount,
PartyDeviceArray* devices
)
Parameters
deviceCount
uint32_t*
output
The output number of devices in this network.
devices
PartyDeviceArray*
library-allocated output array of size *deviceCount
A library-allocated output array containing the devices in this network.
Return value
PartyError
c_partyErrorSuccess
if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via PartyManager::GetErrorMessage().
Remarks
Once a PartyRemoteDeviceLeftNetworkStateChange has been provided by PartyManager::StartProcessingStateChanges(), the remote device will no longer be present in the array returned by this method. The local device is always in the array.
The memory for the returned array is invalidated whenever the title calls PartyManager::StartProcessingStateChanges().
Requirements
Header: Party.h
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för