Skip to main content

startDetectTransition

startDetectTransition

Starts the Detector with the given name. A detector watches a condition continuously and automatically runs the State Transition or Action registered to it once that condition is met. If no detector matches the name, nothing happens.

Parameters

NameTypeDescription
detectorNameStringThe name of the detector to start

Returns: void

Example

$act.startDetectTransition("scrollDetector");

Related

  • $act.stopDetectTransition(detectorName) — stops a detector
  • $act.startStateTransition(transitionID, onEnd, duration) — runs a State Transition directly