Condividi tramite


Context.OpPackageName Property

Definition

Return the package name that should be used for android.app.AppOpsManager calls from this context, so that app ops manager's uid verification will work with the name.

public virtual string OpPackageName { [Android.Runtime.Register("getOpPackageName", "()Ljava/lang/String;", "GetGetOpPackageNameHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getOpPackageName", "()Ljava/lang/String;", "GetGetOpPackageNameHandler", ApiSince=29)>]
member this.OpPackageName : string

Property Value

Attributes

Remarks

Return the package name that should be used for android.app.AppOpsManager calls from this context, so that app ops manager's uid verification will work with the name.

This is not generally intended for third party application developers.

Java documentation for android.content.Context.getOpPackageName().

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