From 03976f129b5470b51d3da1288dab1df43e177304 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Fri, 28 Apr 2017 11:55:18 +0200 Subject: [PATCH] Add first draft of lifecycle diagram. (#186) Closes #160 --- index.bs | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/index.bs b/index.bs index 7b0eb46..3563d5b 100644 --- a/index.bs +++ b/index.bs @@ -646,6 +646,85 @@ Note: user agents are encouraged to stop sensor polling when [=sensor task sources=] are disabled in order to save battery. +### Sensor lifecycle ### {#sensor-lifecycle} + + + + + Sensor lifecycle + + + idle + + idle + + + + + activating + + activating + + + + idle->activating + + + start() + + start() + + + + activating->idle + + + + Error + + + + + activated + + activated + + + + activating->activated + + + + + activated->idle + + + stop() / Error + + + start + + + + start->idle + + + + construct + + + + + + ### Sensor internal slots ### {#sensor-internal-slots} Instances of {{Sensor}} are created