UserManager.GetSerialNumberForUser(UserHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the serial number for a user.
[Android.Runtime.Register("getSerialNumberForUser", "(Landroid/os/UserHandle;)J", "GetGetSerialNumberForUser_Landroid_os_UserHandle_Handler")]
public virtual long GetSerialNumberForUser (Android.OS.UserHandle? user);
[<Android.Runtime.Register("getSerialNumberForUser", "(Landroid/os/UserHandle;)J", "GetGetSerialNumberForUser_Landroid_os_UserHandle_Handler")>]
abstract member GetSerialNumberForUser : Android.OS.UserHandle -> int64
override this.GetSerialNumberForUser : Android.OS.UserHandle -> int64
Parameters
- user
- UserHandle
The user whose serial number is to be retrieved.
Returns
The serial number of the given user; returns -1 if the given UserHandle does not exist.
- Attributes
Remarks
Return the serial number for a user. This is a device-unique number assigned to that user; if the user is deleted and then a new user created, the new users will not be given the same serial number.
Java documentation for android.os.UserManager.getSerialNumberForUser(android.os.UserHandle)
.
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.