AppUsageDuration(String, Int64, Int64, Int64) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Constructor for AppUsageDuration.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;JJJ)V", "", ApiSince=37)]
public AppUsageDuration(string packageName, long totalUsageDurationMillis, long startTimeMillis, long endTimeMillis);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;JJJ)V", "", ApiSince=37)>]
new Android.App.Usage.AppUsageDuration : string * int64 * int64 * int64 -> Android.App.Usage.AppUsageDuration
Parameters
- packageName
- String
package name of the app
- totalUsageDurationMillis
- Int64
total duration the app was used, in milliseconds
- startTimeMillis
- Int64
start of the time range for which the usage duration is valid, in milliseconds since epoch
- endTimeMillis
- Int64
end of the time range for which the usage duration is valid, in milliseconds since epoch
- Attributes
Remarks
Constructor for AppUsageDuration.
Android reference for android.app.usage.AppUsageDuration.AppUsageDuration.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.