and

fun and(trigger: () -> Boolean): Trigger

Composes two triggers with logical AND.

Return

A trigger which is active when both component triggers are active.

Parameters

trigger

the condition to compose with