sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
558 B

define(["dojo/_base/declare", "dojo/topic"], function(declare, topic){
return declare(null, {
lifecycle: {
UNKNOWN: 0, //unknown
STARTING: 1, //starting
STARTED: 2, //started
STOPPING: 3, //stopping
STOPPED: 4 //stopped
},
_status: 0, //unknown
getStatus: function(){
return this._status;
},
setStatus: function(newStatus){
this._status = newStatus;
// publish /app/status event.
// application can subscribe this event to do some status change operation.
topic.publish("/app/status", newStatus);
}
});
});