MockPackageManager.GetPackageGids Method

Definition

Overloads

GetPackageGids(String)

Return an array of all of the secondary group-ids that have been assigned to a package.

GetPackageGids(String, PackageInfoFlags)

GetPackageGids(String)

Return an array of all of the secondary group-ids that have been assigned to a package.

[Android.Runtime.Register("getPackageGids", "(Ljava/lang/String;)[I", "GetGetPackageGids_Ljava_lang_String_Handler")]
public override int[]? GetPackageGids (string? packageName);
[<Android.Runtime.Register("getPackageGids", "(Ljava/lang/String;)[I", "GetGetPackageGids_Ljava_lang_String_Handler")>]
override this.GetPackageGids : string -> int[]

Parameters

packageName
String

The full name (i.e. com.google.apps.contacts) of the desired package.

Returns

Int32[]
Attributes

Exceptions

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

GetPackageGids(String, PackageInfoFlags)

[Android.Runtime.Register("getPackageGids", "(Ljava/lang/String;I)[I", "GetGetPackageGids_Ljava_lang_String_IHandler", ApiSince=24)]
public override int[]? GetPackageGids (string? packageName, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getPackageGids", "(Ljava/lang/String;I)[I", "GetGetPackageGids_Ljava_lang_String_IHandler", ApiSince=24)>]
override this.GetPackageGids : string * Android.Content.PM.PackageInfoFlags -> int[]

Parameters

packageName
String

Returns

Int32[]
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