Språk

UsageEventsQuery.Builder.SetPackageNames(String[]) Method

Definition

Sets the list of package names to be included in the query.

[Android.Runtime.Register("setPackageNames", "([Ljava/lang/String;)Landroid/app/usage/UsageEventsQuery$Builder;", "", ApiSince=35)]
public Android.App.Usage.UsageEventsQuery.Builder SetPackageNames(params string[] pkgNames);
[<Android.Runtime.Register("setPackageNames", "([Ljava/lang/String;)Landroid/app/usage/UsageEventsQuery$Builder;", "", ApiSince=35)>]
member this.SetPackageNames : string[] -> Android.App.Usage.UsageEventsQuery.Builder

Parameters

pkgNames
String[]

the array of the package names, each package name should be a non-empty string, null or empty string("") is omitted.

Returns

Attributes

Remarks

Sets the list of package names to be included in the query.

Android reference for android.app.usage.UsageEventsQuery.Builder.setPackageNames.

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