Udostępnij za pośrednictwem


BackupManager.GetUserForAncestralSerialNumber(Int64) Method

Definition

Returns a UserHandle for the user that has ancestralSerialNumber as the serial number of the its ancestral work profile or null if there is none.

[Android.Runtime.Register("getUserForAncestralSerialNumber", "(J)Landroid/os/UserHandle;", "GetGetUserForAncestralSerialNumber_JHandler", ApiSince=29)]
public virtual Android.OS.UserHandle? GetUserForAncestralSerialNumber (long ancestralSerialNumber);
[<Android.Runtime.Register("getUserForAncestralSerialNumber", "(J)Landroid/os/UserHandle;", "GetGetUserForAncestralSerialNumber_JHandler", ApiSince=29)>]
abstract member GetUserForAncestralSerialNumber : int64 -> Android.OS.UserHandle
override this.GetUserForAncestralSerialNumber : int64 -> Android.OS.UserHandle

Parameters

ancestralSerialNumber
Int64

Returns

Attributes

Remarks

Returns a UserHandle for the user that has ancestralSerialNumber as the serial number of the its ancestral work profile or null if there is none.

The ancestral serial number will have a corresponding UserHandle if the device has a work profile that was restored from another work profile with serial number ancestralSerialNumber.

Java documentation for android.app.backup.BackupManager.getUserForAncestralSerialNumber(long).

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