“No means no” began to give way to “yes means yes” as the credo of sexual consent decades ago, but the shift has been swiftly propelled in recent years by legislation and, most recently, by the #MeToo and #TimesUp movements.

The concept of affirmative consent — the act of giving verbal permission clearly and often during intimate encounters — was pioneered at Antioch College, where an affirmative sexual consent policy was instituted in 1990. It was widely mocked then, but similar policies have since spread to campuses nationwide, and today, the concept is acknowledged well beyond university grounds.

Now, apps aiming to help partners mitigate confusion in the bedroom have emerged, the newest of which approaches consent like a legal contract. LegalFling, which was introduced to users in beta on Monday, lets users give explicit sexual consent via an agreement, or a “live contract,” a dynamic document that users can continuously interact with and update.

And yes, these agreements could hold up in court, said Andrew D. Cherkasky, a former special victims prosecutor who now handles dozens of felony-level sexual assault cases each year as a criminal defense attorney. He emphasized, however, that what LegalFling offers are not technically contracts, but documentations of intent, which are legally viable.