volumeEnforced property
If true, the alarm volume is enforced, automatically resetting to the original alarm volume if the user attempts to adjust it. This prevents the user from lowering the alarm volume. Won't work if app is killed.
With no volume, the level read when the ring starts is pinned instead, so the user's own volume is protected rather than replaced. A muted stream is left alone, since pinning it would leave an alarm nobody could raise.
Defaults to false.
Implementation
final bool volumeEnforced;