← back to roto on ba3a.dev

updateClip

fun updateClip(id: String, clipId: String, change: (Clip) -> Clip): Clip

Applies change to the clip clipId of profile id as profile.json holds it now, so nothing saved since the caller read the clip is lost; returns the clip as saved. A clip the profile no longer has is an IllegalArgumentException.