Sprache

Intent.ShortcutIconResource.FromContext(Context, Int32) Methode

Definition

Erstellt eine neue ShortcutIconResource für den angegebenen Kontext und den Ressourcenbezeichner.

[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

Parameter

context
Context

Der Kontext der Anwendung.

resourceId
Int32

Der Ressourcenbezeichner für das Symbol.

Gibt zurück

Ein Neues Intent.ShortcutIconResource mit dem Paketnamen und dem Symbolressourcenbezeichner des angegebenen Kontexts.

Attribute

Hinweise

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Java Dokumentation für android.content.Intent.ShortcutIconResource.fromContext(android.content.Context, int).

Gilt für: