DevicePolicyManager.SetOrganizationName Method

Definition

Overloads

SetOrganizationName(ComponentName, String)

Called by the device owner (since API 26) or profile owner (since API 24) to set the name of the organization under management.

SetOrganizationName(ComponentName, ICharSequence)

Called by the device owner (since API 26) or profile owner (since API 24) to set the name of the organization under management.

SetOrganizationName(ComponentName, String)

Called by the device owner (since API 26) or profile owner (since API 24) to set the name of the organization under management.

public void SetOrganizationName (Android.Content.ComponentName? admin, string? title);
member this.SetOrganizationName : Android.Content.ComponentName * string -> unit

Parameters

admin
ComponentName

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

title
String

The organization name or null to clear a previously set name.

Remarks

Called by the device owner (since API 26) or profile owner (since API 24) to set the name of the organization under management.

If the organization name needs to be localized, it is the responsibility of the caller to listen to the Intent#ACTION_LOCALE_CHANGED broadcast and set a new version of this string accordingly.

Java documentation for android.app.admin.DevicePolicyManager.setOrganizationName(android.content.ComponentName, java.lang.CharSequence).

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

SetOrganizationName(ComponentName, ICharSequence)

Called by the device owner (since API 26) or profile owner (since API 24) to set the name of the organization under management.

[Android.Runtime.Register("setOrganizationName", "(Landroid/content/ComponentName;Ljava/lang/CharSequence;)V", "GetSetOrganizationName_Landroid_content_ComponentName_Ljava_lang_CharSequence_Handler", ApiSince=24)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_ORGANIZATION_IDENTITY")]
public virtual void SetOrganizationName (Android.Content.ComponentName? admin, Java.Lang.ICharSequence? title);
[<Android.Runtime.Register("setOrganizationName", "(Landroid/content/ComponentName;Ljava/lang/CharSequence;)V", "GetSetOrganizationName_Landroid_content_ComponentName_Ljava_lang_CharSequence_Handler", ApiSince=24)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_ORGANIZATION_IDENTITY")>]
abstract member SetOrganizationName : Android.Content.ComponentName * Java.Lang.ICharSequence -> unit
override this.SetOrganizationName : Android.Content.ComponentName * Java.Lang.ICharSequence -> unit

Parameters

admin
ComponentName

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

title
ICharSequence

The organization name or null to clear a previously set name.

Attributes

Remarks

Called by the device owner (since API 26) or profile owner (since API 24) to set the name of the organization under management.

If the organization name needs to be localized, it is the responsibility of the caller to listen to the Intent#ACTION_LOCALE_CHANGED broadcast and set a new version of this string accordingly.

Java documentation for android.app.admin.DevicePolicyManager.setOrganizationName(android.content.ComponentName, java.lang.CharSequence).

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