语言

Keyboard.SetShifted(Boolean) 方法

定义

更新基本实现中记录的 Shift 键的存储 Shift 状态和状态。

[Android.Runtime.Register("setShifted", "(Z)Z", "GetSetShifted_ZHandler")]
public virtual bool SetShifted(bool shiftState);
[<Android.Runtime.Register("setShifted", "(Z)Z", "GetSetShifted_ZHandler")>]
abstract member SetShifted : bool -> bool
override this.SetShifted : bool -> bool

参数

shiftState
Boolean

要设置的 Shift 状态:true for on;false for off。

返回

在基本实现中,如果存储的 Shift 状态已更改,则为 true;否则为 false。

特性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于