Sdílet prostřednictvím


PackageManager.CanonicalToCurrentPackageNames(String[]) Method

Definition

Map from a packages canonical name to the current name in use on the device.

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

Parameters

packageNames
String[]

Array of new names to be mapped.

Returns

String[]

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

Attributes

Remarks

Map from a packages canonical name to the current name in use on the device.

Java documentation for android.content.pm.PackageManager.canonicalToCurrentPackageNames(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