onReleased

open fun onReleased(inside: Boolean)

Changes the pressed state of the key.

Toggled state of the key will be flipped when all the following conditions are fulfilled:

Parameters

inside

whether the finger was released inside the key. Works only on Android M and later. See the method document for details.

See also