एक उपयोगकर्ता के लिए जानकारी के इर्द-गिर्द डेटा और बुनियादी तर्क संग्रहीत करता है।
नेस्टेड कक्षाएं |
---|
enum | UserInfo.UserType बाहरी एपीआई में उपयोगकर्ता के प्रकार के समर्थित प्रकार। |
सार्वजनिक निर्माणकर्ता |
---|
UserInfo (int userId, String userName, int flag, boolean isRunning) |
स्थिरांक
FLAGS_NOT_SECONDARY
public static final int FLAGS_NOT_SECONDARY
लगातार मूल्य: 45 (0x0000002d)
FLAG_EPHEMERAL
public static final int FLAG_EPHEMERAL
लगातार मूल्य: 256 (0x00000100)
FLAG_GUEST
public static final int FLAG_GUEST
लगातार मूल्य: 4 (0x00000004)
FLAG_MANAGED_PROFILE
public static final int FLAG_MANAGED_PROFILE
लगातार मूल्य: 32 (0x00000020)
FLAG_PRIMARY
public static final int FLAG_PRIMARY
लगातार मूल्य: 1 (0x00000001)
FLAG_RESTRICTED
public static final int FLAG_RESTRICTED
लगातार मूल्य: 8 (0x00000008)
USER_SYSTEM
public static final int USER_SYSTEM
स्थिर मान: 0 (0x00000000)
सार्वजनिक निर्माणकर्ता
उपयोगकर्ता जानकारी
public UserInfo (int userId,
String userName,
int flag,
boolean isRunning)
मापदंडों |
---|
userId | int |
userName | String |
flag | int |
isRunning | boolean |
सार्वजनिक तरीके
अल्पकालिक है
public boolean isEphemeral ()
अतिथि है
public boolean isGuest ()
प्रबंधित प्रोफ़ाइल है
public boolean isManagedProfile ()
प्राथमिक है
public boolean isPrimary ()
दौड रहा है
public boolean isRunning ()
माध्यमिक है
public boolean isSecondary ()
प्रणाली है
public boolean isSystem ()
isUserType
public boolean isUserType (UserInfo.UserType userType,
int currentUserId)
वापस करें कि क्या यह उदाहरण निर्दिष्ट प्रकार का है।
मापदंडों |
---|
userType | UserInfo.UserType |
currentUserId | int |
यूज़र आईडी
public int userId ()
उपयोगकर्ता नाम
public String userName ()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"वह जानकारी मौजूद नहीं है जो मुझे चाहिए"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"बहुत मुश्किल है / बहुत सारे चरण हैं"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"पुराना"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"अनुवाद से जुड़ी समस्या"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"सैंपल / कोड से जुड़ी समस्या"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"अन्य"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"समझने में आसान है"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"मेरी समस्या हल हो गई"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"अन्य"
}]