Returns a list of objects containing info about all currently running services in the background.
Example - Show Running Services
function OnStart()
{
app.ShowProgress();
var lay = app.CreateLayout( "linear", "fillxy,vcenter" );
lst = app.CreateList( "", .9, .9 );
lst.SetTextSize1( 15 );
lay.AddChild( lst );
var list = app.GetRunningServices();
for( var i in list )
{
var a = list[i];
var body =
"user: " + a.user +
"\npid: " + a.pid;
lst.AddItem( a.name, body );
}
app.AddLayout( lay );
app.HideProgress();
}
from native import app
def OnStart():
app.ShowProgress()
lay = app.CreateLayout("linear", "fillxy,vcenter")
lst = app.CreateList("", .9, .9)
lst.SetTextSize1(15)
lay.AddChild(lst)
list = app.GetRunningServices()
for a in list:
body = "user: " + a.user + "\npid: " + str(a.pid)
lst.AddItem(a.name, body)
app.AddLayout(lay)
app.HideProgress()