Android.Test.Mock.MockPackageManager.GetNameForUid Method
Retrieve the official name associated with a user id.

Syntax

[Android.Runtime.Register("getNameForUid", "(I)Ljava/lang/String;", "GetGetNameForUid_IHandler")]
public override string GetNameForUid (int uid)

Parameters

uid
The user id for which you would like to retrieve a name.

Returns

Documentation for this section has not yet been entered.

Remarks

Retrieve the official name associated with a user id. This name is guaranteed to never change, though it is possibly for the underlying user id to be changed. That is, if you are storing information about user ids in persistent storage, you should use the string returned by this function instead of the raw user-id.

[Android Documentation]

Requirements

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