Example - 2
function OnStart()
{
app.ShowCheckList( "Select Animals", "Sheep:true,Cows:false,Pigs:false", OnFinish, 0.8, 0.5 );
}
function OnFinish( data )
{
if( data )
app.ShowPopup( JSON.stringify(data) );
else
app.ShowPopup( "Cancelled" );
}
from native import app
def OnStart():
app.ShowCheckList( "Select Animals", "Sheep:true,Cows:false,Pigs:false", OnFinish, 0.8, 0.5 )
def OnFinish(data):
if data:
app.ShowPopup( JSON.stringify(data) )
else:
app.ShowPopup( "Cancelled" )