DevicePolicyResourcesManager.GetDrawableAsIcon 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.
Overloads
GetDrawableAsIcon(String, String, Icon) |
Similar to |
GetDrawableAsIcon(String, String, String, Icon) |
Similar to |
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
.
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
.
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.