Android.Content.PM.PackageManager.GetLeanbackLaunchIntentForPackage Method
Return a "good" intent to launch a front-door Leanback activity in a package, for use for example to implement an "open" button when browsing through packages.

Syntax

[Android.Runtime.Register("getLeanbackLaunchIntentForPackage", "(Ljava/lang/String;)Landroid/content/Intent;", "GetGetLeanbackLaunchIntentForPackage_Ljava_lang_String_Handler")]
public abstract Android.Content.Intent GetLeanbackLaunchIntentForPackage (string packageName)

Parameters

packageName
The name of the package to inspect.

Returns

Documentation for this section has not yet been entered.

Remarks

Return a "good" intent to launch a front-door Leanback activity in a package, for use for example to implement an "open" button when browsing through packages. The current implementation will look for a main activity in the category Android.Content.Intent.CategoryLeanbackLauncher, or return null if no main leanback activities are found.

Throws NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html if a package with the given name cannot be found on the system.

[Android Documentation]

Requirements

Namespace: Android.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1