UserManager.GetUserCreationTime(UserHandle) Method

Definition

Returns creation time of the given user.

[Android.Runtime.Register("getUserCreationTime", "(Landroid/os/UserHandle;)J", "GetGetUserCreationTime_Landroid_os_UserHandle_Handler", ApiSince=23)]
public virtual long GetUserCreationTime (Android.OS.UserHandle? userHandle);
[<Android.Runtime.Register("getUserCreationTime", "(Landroid/os/UserHandle;)J", "GetGetUserCreationTime_Landroid_os_UserHandle_Handler", ApiSince=23)>]
abstract member GetUserCreationTime : Android.OS.UserHandle -> int64
override this.GetUserCreationTime : Android.OS.UserHandle -> int64

Parameters

userHandle
UserHandle

user handle of the calling user or a profile associated with the calling user.

Returns

creation time in milliseconds since Epoch time.

Attributes

Remarks

Returns creation time of the given user. The given user must be the calling user or a profile associated with it.

Java documentation for android.os.UserManager.getUserCreationTime(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.

Applies to