Pebble.UnobstructedArea
Observe Timeline Quick View unobstructed-area changes on round watches.
Use currentBounds during startup to sync the initial layout, then subscribe to onWillChange, onChanging, and onDidChange to animate layout transitions.
Native Pebble C API
- UnobstructedArea on developer.repebble.com
Commands
currentBounds
currentBounds : (Rect -> msg) -> Cmd msgRead the current unobstructed bounds once.
Subscriptions
onWillChange
onWillChange : (Rect -> msg) -> Sub msgReceive the final unobstructed bounds before a Timeline peek transition.
onChanging
onChanging : (Int -> msg) -> Sub msgReceive animation progress while the unobstructed area is changing.
Progress ranges from 0 to 255, matching Pebble's AnimationProgress.
onDidChange
onDidChange : msg -> Sub msgReceive notification after the unobstructed area finished changing.