Back

GetAccounts

Hello World

Returns a string of all known account names on the device separated with comma ','.

app.GetAccounts() → string: comma “,” separated

See Also: ChooseAccount

Example - Get Accounts

function OnStart()
{
    var accounts = app.GetAccounts();
    dlg = app.CreateListDialog( "Select an account:", accounts );
    dlg.SetOnTouch( dlg_OnTouch );
    dlg.Show();
}

function dlg_OnTouch( account )
{
    app.ShowPopup( "Selected Account: " + account );
}
    Copy     Copy All       Run