Intent.ShortcutIconResource.FromContext(Context, Int32) Method

Definition

Creates a new ShortcutIconResource for the specified context and resource identifier.

[Android.Runtime.Register("fromContext", "(Landroid/content/Context;I)Landroid/content/Intent$ShortcutIconResource;", "")]
public static Android.Content.Intent.ShortcutIconResource? FromContext (Android.Content.Context? context, int resourceId);
[<Android.Runtime.Register("fromContext", "(Landroid/content/Context;I)Landroid/content/Intent$ShortcutIconResource;", "")>]
static member FromContext : Android.Content.Context * int -> Android.Content.Intent.ShortcutIconResource

Parameters

context
Context

The context of the application.

resourceId
Int32

The resource idenfitier for the icon.

Returns

Attributes

Remarks

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