Freigeben über


DevicePolicyManager.SetUserIcon(ComponentName, Bitmap) Method

Definition

Called by profile or device owners to set the user's photo.

[Android.Runtime.Register("setUserIcon", "(Landroid/content/ComponentName;Landroid/graphics/Bitmap;)V", "GetSetUserIcon_Landroid_content_ComponentName_Landroid_graphics_Bitmap_Handler", ApiSince=23)]
public virtual void SetUserIcon (Android.Content.ComponentName admin, Android.Graphics.Bitmap? icon);
[<Android.Runtime.Register("setUserIcon", "(Landroid/content/ComponentName;Landroid/graphics/Bitmap;)V", "GetSetUserIcon_Landroid_content_ComponentName_Landroid_graphics_Bitmap_Handler", ApiSince=23)>]
abstract member SetUserIcon : Android.Content.ComponentName * Android.Graphics.Bitmap -> unit
override this.SetUserIcon : Android.Content.ComponentName * Android.Graphics.Bitmap -> unit

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

icon
Bitmap

the bitmap to set as the photo.

Attributes

Remarks

Called by profile or device owners to set the user's photo.

Java documentation for android.app.admin.DevicePolicyManager.setUserIcon(android.content.ComponentName, android.graphics.Bitmap).

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