cfclient.events.onSearchButton

Handling the Search button event

To handle the Search button event, use:

<cfset cfclient.events.onSearchButton(callbackfunc)>

For all battery related events, the callback function is invoked with a battery status object. The following properties are associated with this object:

  • level - The percentage of battery (0-100). (Number)
  • isPlugged - A boolean that represents whether or not the device is plugged in.
Adobe logo

Sign in to your account