DevicePolicyManager.GetOrganizationNameFormatted(ComponentName) 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.
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.
[Android.Runtime.Register("getOrganizationName", "(Landroid/content/ComponentName;)Ljava/lang/CharSequence;", "GetGetOrganizationName_Landroid_content_ComponentName_Handler", ApiSince=24)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_ORGANIZATION_IDENTITY")]
public virtual Java.Lang.ICharSequence? GetOrganizationNameFormatted (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getOrganizationName", "(Landroid/content/ComponentName;)Ljava/lang/CharSequence;", "GetGetOrganizationName_Landroid_content_ComponentName_Handler", ApiSince=24)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_ORGANIZATION_IDENTITY")>]
abstract member GetOrganizationNameFormatted : Android.Content.ComponentName -> Java.Lang.ICharSequence
override this.GetOrganizationNameFormatted : Android.Content.ComponentName -> Java.Lang.ICharSequence
Parameters
-
admin
-
ComponentName
Which DeviceAdminReceiver
this request is associated with.
Returns
The organization name or null
if none is set.
- Attributes
-
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.
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