MockPackageManager.GetPreferredPackages(PackageInfoFlags) Method

Definition

Caution

deprecated

Retrieve the list of all currently configured preferred packages.

[Android.Runtime.Register("getPreferredPackages", "(I)Ljava/util/List;", "GetGetPreferredPackages_IHandler")]
[System.Obsolete("deprecated")]
public override System.Collections.Generic.IList<Android.Content.PM.PackageInfo>? GetPreferredPackages (Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getPreferredPackages", "(I)Ljava/util/List;", "GetGetPreferredPackages_IHandler")>]
[<System.Obsolete("deprecated")>]
override this.GetPreferredPackages : Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.PackageInfo>

Parameters

flags
PackageInfoFlags

Additional option flags. Use any combination of Activities, Gids, Configurations, Instrumentation, Permissions, Providers, Receivers, Services, Signatures, to modify the data returned.

Returns

Attributes

Remarks

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