ShortcutInfo.CreateFromGenericDocument(Context, GenericDocument) 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.
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.
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.