Share via


UsageStats.Add(UsageStats) Method

Definition

Add the statistics from the right UsageStats to the left.

[Android.Runtime.Register("add", "(Landroid/app/usage/UsageStats;)V", "")]
public void Add (Android.App.Usage.UsageStats? right);
[<Android.Runtime.Register("add", "(Landroid/app/usage/UsageStats;)V", "")>]
member this.Add : Android.App.Usage.UsageStats -> unit

Parameters

right
UsageStats

The UsageStats object to merge into this one.

Attributes

Exceptions

if the package names of the two UsageStats objects are different.

Remarks

Add the statistics from the right UsageStats to the left. The package name for both UsageStats objects must be the same.

Java documentation for android.app.usage.UsageStats.add(android.app.usage.UsageStats).

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.

Applies to