MobAudioCapture.DemoScreen (mob_audio_capture v0.1.0)

Copy Markdown View Source

A ready-to-run sample screen exercising MobAudioCapture, 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 and accept the system capture-consent dialog; the meter then shows the device output mix's live level (rms / peak dBFS) while any app plays audio, and silent when nothing does. Android only — on iOS every call reports unsupported.

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.