DevicePolicyManager.IsProfileOwnerApp(String) Method
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.
Used to determine if a particular package is registered as the profile owner for the user.
[Android.Runtime.Register("isProfileOwnerApp", "(Ljava/lang/String;)Z", "GetIsProfileOwnerApp_Ljava_lang_String_Handler")]
public virtual bool IsProfileOwnerApp (string? packageName);
[<Android.Runtime.Register("isProfileOwnerApp", "(Ljava/lang/String;)Z", "GetIsProfileOwnerApp_Ljava_lang_String_Handler")>]
abstract member IsProfileOwnerApp : string -> bool
override this.IsProfileOwnerApp : string -> bool
Parameters
- packageName
- String
The package name of the app to compare with the registered profile owner.
Returns
Whether or not the package is registered as the profile owner.
- Attributes
Remarks
Used to determine if a particular package is registered as the profile owner for the user. A profile owner is a special device admin that has additional privileges within the profile.
Java documentation for android.app.admin.DevicePolicyManager.isProfileOwnerApp(java.lang.String)
.
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.