Język

NetworkEvent.PackageName Property

Definition

Returns the package name of the UID that performed the query, as returned by PackageManager#getNameForUid.

public virtual string? PackageName { [Android.Runtime.Register("getPackageName", "()Ljava/lang/String;", "GetGetPackageNameHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getPackageName", "()Ljava/lang/String;", "GetGetPackageNameHandler", ApiSince=26)>]
member this.PackageName : string

Property Value

The name of the package of the UID that did the network operation.

Attributes

Remarks

Returns the package name of the UID that performed the query, as returned by PackageManager#getNameForUid.

Java documentation for android.app.admin.NetworkEvent.getPackageName().

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