Keyboard.Key.OnReleased(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Changes the pressed state of the key.
[Android.Runtime.Register("onReleased", "(Z)V", "GetOnReleased_ZHandler")]
public virtual void OnReleased(bool inside);
[<Android.Runtime.Register("onReleased", "(Z)V", "GetOnReleased_ZHandler")>]
abstract member OnReleased : bool -> unit
override this.OnReleased : bool -> unit
Parameters
- inside
- Boolean
whether the finger was released inside the key. Works only on Android M and later. See the method document for details.
- Attributes
Remarks
Changes the pressed state of the key.
Toggled state of the key will be flipped when all the following conditions are fulfilled:
<ul> <li>This is a sticky key, that is, #sticky is true. <li>The parameter inside is true. <li>android.os.Build.VERSION#SDK_INT is greater than android.os.Build.VERSION_CODES#LOLLIPOP_MR1. </ul>
Java documentation for android.inputmethodservice.Keyboard.Key.onReleased(boolean).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.