Functions of ballerina.user package
public function getCountry() (string)
Returns the current user's name.
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string | string: current user's name if it can be determined, an empty string otherwise |
public function getHome() (string)
Returns the current user's country.
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string | string: current user's country if it can be determined, an empty string otherwise |
public function getLanguage() (string)
Returns the current user's language.
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string | string: current user's language if it can be determined, an empty string otherwise |
public function getLocale() (Locale)
Returns the current user's locale.
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
Locale | string: current user's locale |
public function getName() (string)
Returns the current user's home directory path.
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string | string: current user's home directory if it can be determined, an empty string otherwise |