MobSms.DemoScreen (mob_sms v0.1.1)

Copy Markdown View Source

A ready-to-run sample screen exercising MobSms, shipped so a generated app can kick the tires the moment the plugin is activated. Declared in the plugin manifest's :screens, so the host's home can surface it by route without writing any code. Delete it (and the manifest entry) in a real app.

Fires a composer pre-filled with a sample invite-code body. Displays the result the plugin delivers — on Android that will always be :composer_opened, since the platform can't observe what happens once the SMS app is up.

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.