Ballerina API Documentation

Functions of ballerina.user package

public function getCountry() (string)

Returns the current user's name.

Return Parameters:

Return VariableData TypeDescription
stringstring: 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 VariableData TypeDescription
stringstring: 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 VariableData TypeDescription
stringstring: 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 VariableData TypeDescription
Localestring: current user's locale

public function getName() (string)

Returns the current user's home directory path.

Return Parameters:

Return VariableData TypeDescription
stringstring: current user's home directory if it can be determined, an empty string otherwise


Menu

  • Functions
    • getCountry() (string )
    • getHome() (string )
    • getLanguage() (string )
    • getLocale() (Locale )
    • getName() (string )

Copyright 2017 Ballerina API Documentation