Before you begin, see Event Functions.
<cfclientsettings enableDeviceAPI=true> <cfclient> <cfset cfclient.events.onBackButton("callbackfunc")> <cffunction access="public" name="callbackfunc" returntype="void" > <!--- Back button pressed ---> </cffunction> </cfclient>
<cfclientsettings enableDeviceAPI=true> <cfclient> <cfset cfclient.events.onBatteryCritical("callbackfunc")> <cffunction access="public" name="callbackfunc" returntype="void" > <!--- Battery critically low! ---> </cffunction> </cfclient>
<cfclientsettings enableDeviceAPI=true> <cfclient> <cfset cfclient.events.onBatteryLow("callbackfunc")> <cffunction access="public" name="callbackfunc" returntype="void" > <!--- Battery low! ---> </cffunction> </cfclient>