Share via


OrientationSensor.ReportLatency 屬性

定義

取得或設定感應器資訊批次之間的延遲。

public:
 property unsigned int ReportLatency { unsigned int get(); void set(unsigned int value); };
uint32_t ReportLatency();

void ReportLatency(uint32_t value);
public uint ReportLatency { get; set; }
var uInt32 = orientationSensor.reportLatency;
orientationSensor.reportLatency = uInt32;
Public Property ReportLatency As UInteger

屬性值

UInt32

unsigned int

uint32_t

以毫秒為單位的感應器資訊批次之間的延遲。

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

此屬性參考 ReadingChanged 事件的頻率。

並非所有感應器都支援 ReportLatency。 如果感應器不支援這個屬性,它的功能會與您將此值設定為 0 相同。 將此值設定為 0 將會使用感應器的預設延遲。

如果您將 ReportLatency 設定為高於最大支援延遲的值,感應器將會使用支援的延遲上限。 不過,這個屬性不會變更值。 最大可能的 ReportLatency 等於 MaxBatchSize 時間 ReportInterval

請注意,多個應用程式可能相依于單一感應器。 每個應用程式都可以為 ReportLatency設定不同的值。 在此案例中,感應器必須嘗試容納 ReportLatency的最低值。 因此,實際延遲可能不符合您應用程式中這個屬性所定義的延遲。 此屬性會對應至您理想的延遲,這在感應器上可能不是相同的延遲。

如需感應器批次處理的詳細資訊,請參閱 感應器

適用於