Freigeben über


DevicePolicyResourcesManager.GetDrawableAsIcon Method

Definition

Overloads

GetDrawableAsIcon(String, String, Icon)

Similar to #getDrawable(String, String, Supplier) but returns an Icon instead of a Drawable.

GetDrawableAsIcon(String, String, String, Icon)

Similar to #getDrawable(String, String, String, Supplier) but returns an Icon instead of a Drawable.

GetDrawableAsIcon(String, String, Icon)

Similar to #getDrawable(String, String, Supplier) but returns an Icon instead of a Drawable.

[Android.Runtime.Register("getDrawableAsIcon", "(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Icon;)Landroid/graphics/drawable/Icon;", "GetGetDrawableAsIcon_Ljava_lang_String_Ljava_lang_String_Landroid_graphics_drawable_Icon_Handler", ApiSince=33)]
public virtual Android.Graphics.Drawables.Icon? GetDrawableAsIcon (string drawableId, string drawableStyle, Android.Graphics.Drawables.Icon? defaultIcon);
[<Android.Runtime.Register("getDrawableAsIcon", "(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Icon;)Landroid/graphics/drawable/Icon;", "GetGetDrawableAsIcon_Ljava_lang_String_Ljava_lang_String_Landroid_graphics_drawable_Icon_Handler", ApiSince=33)>]
abstract member GetDrawableAsIcon : string * string * Android.Graphics.Drawables.Icon -> Android.Graphics.Drawables.Icon
override this.GetDrawableAsIcon : string * string * Android.Graphics.Drawables.Icon -> Android.Graphics.Drawables.Icon

Parameters

drawableId
String

The drawable ID to get the updated resource for.

drawableStyle
String

The drawable style to use.

defaultIcon
Icon

Returned if no updated drawable was set for the provided params.

Returns

Attributes

Remarks

Similar to #getDrawable(String, String, Supplier) but returns an Icon instead of a Drawable.

Java documentation for android.app.admin.DevicePolicyResourcesManager.getDrawableAsIcon(java.lang.String, java.lang.String, android.graphics.drawable.Icon).

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

GetDrawableAsIcon(String, String, String, Icon)

Similar to #getDrawable(String, String, String, Supplier) but returns an Icon instead of a Drawable.

[Android.Runtime.Register("getDrawableAsIcon", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Icon;)Landroid/graphics/drawable/Icon;", "GetGetDrawableAsIcon_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Landroid_graphics_drawable_Icon_Handler", ApiSince=33)]
public virtual Android.Graphics.Drawables.Icon? GetDrawableAsIcon (string drawableId, string drawableStyle, string drawableSource, Android.Graphics.Drawables.Icon? defaultIcon);
[<Android.Runtime.Register("getDrawableAsIcon", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Icon;)Landroid/graphics/drawable/Icon;", "GetGetDrawableAsIcon_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Landroid_graphics_drawable_Icon_Handler", ApiSince=33)>]
abstract member GetDrawableAsIcon : string * string * string * Android.Graphics.Drawables.Icon -> Android.Graphics.Drawables.Icon
override this.GetDrawableAsIcon : string * string * string * Android.Graphics.Drawables.Icon -> Android.Graphics.Drawables.Icon

Parameters

drawableId
String

The drawable ID to get the updated resource for.

drawableStyle
String

The drawable style to use.

drawableSource
String

The source for the caller.

defaultIcon
Icon

Returned if no updated drawable was set for the provided params.

Returns

Attributes

Remarks

Similar to #getDrawable(String, String, String, Supplier) but returns an Icon instead of a Drawable.

Java documentation for android.app.admin.DevicePolicyResourcesManager.getDrawableAsIcon(java.lang.String, java.lang.String, java.lang.String, android.graphics.drawable.Icon).

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