ReferenceScripting APIMotionEvent
MotionEvent
interfaceOne of the calendar's events: its title, start and end (ms since 1970, local time), and whether it lasts all day.
| Name | MotionEvent |
|---|---|
| Kind | interface |
| Script reaches it as | MotionScene.calendar · MotionEvents.calendar |
| Since | 0.3 |
Syntax
interface MotionEvent { … }Properties
| Name | Type | Description |
|---|---|---|
titleproperty | readonly string | What the calendar calls it. |
startproperty | readonly number | When it starts, in milliseconds since 1970 (as Date.now()). |
endproperty | readonly number | When it ends, in milliseconds since 1970. |
allDayproperty | readonly boolean | Whether it lasts all day, with no time of its own. |
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.