Condividi tramite


PackageManager.CurrentToCanonicalPackageNames(String[]) Method

Definition

Map from the current package names in use on the device to whatever the current canonical name of that package is.

[Android.Runtime.Register("currentToCanonicalPackageNames", "([Ljava/lang/String;)[Ljava/lang/String;", "GetCurrentToCanonicalPackageNames_arrayLjava_lang_String_Handler")]
public abstract string[]? CurrentToCanonicalPackageNames (string[] packageNames);
[<Android.Runtime.Register("currentToCanonicalPackageNames", "([Ljava/lang/String;)[Ljava/lang/String;", "GetCurrentToCanonicalPackageNames_arrayLjava_lang_String_Handler")>]
abstract member CurrentToCanonicalPackageNames : string[] -> string[]

Parameters

packageNames
String[]

Array of current names to be mapped.

Returns

String[]

Returns an array of the same size as the original, containing the canonical name for each package.

Attributes

Remarks

Map from the current package names in use on the device to whatever the current canonical name of that package is.

Java documentation for android.content.pm.PackageManager.currentToCanonicalPackageNames(java.lang.String[]).

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