Udostępnij za pośrednictwem


ShortcutInfo.CreateFromGenericDocument(Context, GenericDocument) Method

Definition

Convert a GenericDocument into a ShortcutInfo.

[Android.Runtime.Register("createFromGenericDocument", "(Landroid/content/Context;Landroid/app/appsearch/GenericDocument;)Landroid/content/pm/ShortcutInfo;", "", ApiSince=33)]
public static Android.Content.PM.ShortcutInfo CreateFromGenericDocument (Android.Content.Context context, Android.App.AppSearch.GenericDocument document);
[<Android.Runtime.Register("createFromGenericDocument", "(Landroid/content/Context;Landroid/app/appsearch/GenericDocument;)Landroid/content/pm/ShortcutInfo;", "", ApiSince=33)>]
static member CreateFromGenericDocument : Android.Content.Context * Android.App.AppSearch.GenericDocument -> Android.Content.PM.ShortcutInfo

Parameters

context
Context

Client context

document
GenericDocument

An instance of GenericDocument that represents the shortcut.

Returns

Attributes

Remarks

Convert a GenericDocument into a ShortcutInfo.

Java documentation for android.content.pm.ShortcutInfo.createFromGenericDocument(android.content.Context, android.app.appsearch.GenericDocument).

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