Language

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 identifier for the icon.

Returns

A new Intent.ShortcutIconResource with the specified context's package name and icon resource identifier.

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.

Java documentation for android.content.Intent.ShortcutIconResource.fromContext(android.content.Context, int).

Applies to