MobTouch.DemoScreen (mob_touch v0.1.0)

Copy Markdown View Source

A ready-to-run sample screen exercising MobTouch, shipped so a generated app can kick the tires the moment the plugin is activated. Declared in the plugin manifest's :screens. Delete it (and the manifest entry) in a real app.

Tap Start, then drag anywhere on screen: the latest touch's phase and coordinates update live, and the button still works — proof the stream observes without consuming.

Summary

Functions

dump_state(assigns)

Callback implementation for Mob.Screen.dump_state/1.

handle_event(event, params, socket)

Callback implementation for Mob.Screen.handle_event/3.

load_state(vsn, stored)

Callback implementation for Mob.Screen.load_state/2.

terminate(reason, socket)

Callback implementation for Mob.Screen.terminate/2.