DevicePolicyManager.GetOrganizationName(ComponentName) Method

Definition

Called by the device owner (since API 26) or profile owner (since API 24) or holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_ORGANIZATION_IDENTITY to retrieve the name of the organization under management.

        @param admin Which {@link DeviceAdminReceiver</code> this request is associated with.
public string? GetOrganizationName (Android.Content.ComponentName? admin);
member this.GetOrganizationName : Android.Content.ComponentName -> string

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

Returns

The organization name or null if none is set.

Remarks

Called by the device owner (since API 26) or profile owner (since API 24) or holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_ORGANIZATION_IDENTITY to retrieve the name of the organization under management.

@param admin Which {@link DeviceAdminReceiver this request is associated with. Null if the caller is not a device admin.

Java documentation for android.app.admin.DevicePolicyManager.getOrganizationName(android.content.ComponentName).

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