語言

UsageStatsManager.QueryConfigurations 方法

定義

取得裝置在指定時間範圍內所處硬體配置,並依指定區間彙總。

[Android.Runtime.Register("queryConfigurations", "(IJJ)Ljava/util/List;", "")]
[Android.Runtime.RequiresPermission("android.permission.PACKAGE_USAGE_STATS")]
public System.Collections.Generic.IList<Android.App.Usage.ConfigurationStats>? QueryConfigurations(Android.App.Usage.UsageStatsInterval intervalType, long beginTime, long endTime);
[<Android.Runtime.Register("queryConfigurations", "(IJJ)Ljava/util/List;", "")>]
[<Android.Runtime.RequiresPermission("android.permission.PACKAGE_USAGE_STATS")>]
member this.QueryConfigurations : Android.App.Usage.UsageStatsInterval * int64 * int64 -> System.Collections.Generic.IList<Android.App.Usage.ConfigurationStats>

參數

intervalType
UsageStatsInterval

統計數據彙整的時間間隔。

beginTime
Int64

包含在結果中納入統計範圍的包容性起點。 以「Unix 時間」定義,請參見 java.lang.System#currentTimeMillis。

endTime
Int64

這是結果中唯一包含統計範圍的極限。 以「Unix 時間」定義,請參見 java.lang.System#currentTimeMillis。

傳回

一份清單 ConfigurationStats

屬性

備註

取得裝置在指定時間範圍內所處硬體配置,並依指定區間彙總。 結果排序如下。#queryUsageStats(int, long, long)

<em>注意: android.os.Build.VERSION_CODES#R Android R從 開始,若使用者裝置未處於解鎖狀態(由 定義), UserManager#isUserUnlocked()則 null 將返回。</em>

Java 文件 android.app.usage.UsageStatsManager.queryConfigurations(int, long, long)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於