in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/HoloLens/PerceptionSimulationRecording.cs [61:81]
public async Task StartHolographicSimulationRecordingAsync(
string name,
bool recordHead = true,
bool recordHands = true,
bool recordSpatialMapping = true,
bool recordEnvironment = true)
{
if (!Utilities.IsHoloLens(this.Platform, this.DeviceFamily))
{
throw new NotSupportedException("This method is only supported on HoloLens.");
}
string payload = string.Format(
"head={0}&hands={1}&spatialMapping={2}&environment={3}&name={4}",
recordHead ? 1 : 0,
recordHands ? 1 : 0,
recordSpatialMapping ? 1 : 0,
recordEnvironment ? 1 : 0,
name);
await this.PostAsync(StartHolographicSimulationRecordingApi, payload);
}