UserInfo.UserType
public static final enum UserInfo.UserType
extends Enum< UserInfo.UserType >
java.lang.Object | ||
↳ | java.lang.Enum< com.android.tradefed.device.UserInfo.UserType > | |
↳ | com.android.tradefed.device.UserInfo.UserType |
Varianti supportate del tipo di un utente nelle API esterne.
Riepilogo
Enum valori | |
---|---|
UserInfo.UserType | CURRENT utente in primo piano corrente del dispositivo |
UserInfo.UserType | GUEST utente ospite. |
UserInfo.UserType | MANAGED_PROFILE utente del profilo gestito, ad es. profilo di lavoro. |
UserInfo.UserType | PRIMARY utente contrassegnato come primario sul dispositivo; più spesso primario = utente di sistema = utente 0 |
UserInfo.UserType | SECONDARY utente secondario, es |
UserInfo.UserType | SYSTEM utente di sistema = utente 0 |
Metodi pubblici | |
---|---|
boolean | isCurrent () |
boolean | isGuest () |
boolean | isManagedProfile () |
boolean | isPrimary () |
boolean | isSecondary () |
boolean | isSystem () |
static UserInfo.UserType | valueOf (String name) |
static final UserType[] | values () |
Enum valori
ATTUALE
public static final UserInfo.UserType CURRENT
utente in primo piano corrente del dispositivo
OSPITE
public static final UserInfo.UserType GUEST
utente ospite. Solo uno può esistere alla volta, può essere effimero e avere più restrizioni.
PROFILO_GESTITO
public static final UserInfo.UserType MANAGED_PROFILE
utente del profilo gestito, ad es. profilo di lavoro.
PRIMARIO
public static final UserInfo.UserType PRIMARY
utente contrassegnato come primario sul dispositivo; più spesso primario = utente di sistema = utente 0
SECONDARIO
public static final UserInfo.UserType SECONDARY
utente secondario, ovvero non primario e non di sistema.
Metodi pubblici
è attuale
public boolean isCurrent ()
ritorna | |
---|---|
boolean |
isGuest
public boolean isGuest ()
ritorna | |
---|---|
boolean |
isManagedProfile
public boolean isManagedProfile ()
ritorna | |
---|---|
boolean |
è primario
public boolean isPrimary ()
ritorna | |
---|---|
boolean |
èSecondario
public boolean isSecondary ()
ritorna | |
---|---|
boolean |
isSystem
public boolean isSystem ()
ritorna | |
---|---|
boolean |
valore di
public static UserInfo.UserType valueOf (String name)
Parametri | |
---|---|
name | String |
ritorna | |
---|---|
UserInfo.UserType |
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.