public class OsAccount extends Object
SystemCapability.Account#OS_ACCOUNT| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getLocalId() |
Obtains the local ID of an OS account.
|
String |
getLocalName() |
Obtains the local name of an OS account.
|
OsAccountType |
getType() |
Obtains the type of an OS account.
|
void |
setLocalName(String name) |
Sets the local name of an OS account.
|
void |
setType(OsAccountType type) |
Sets the type of an OS account.
|
public OsAccount()
OsAccount instance.public String getLocalName()
public void setLocalName(String name)
name - Indicates the local name of the OS account.public int getLocalId()
public OsAccountType getType()
OsAccountType.public void setType(OsAccountType type)
OsAccountType.type - Indicates the type of the OS account.