InputMethodService.EnableHardwareAcceleration Method

Definition

Caution

deprecated

You can call this to try to enable accelerated drawing for your IME.

[Android.Runtime.Register("enableHardwareAcceleration", "()Z", "GetEnableHardwareAccelerationHandler")]
[System.Obsolete("deprecated")]
public virtual bool EnableHardwareAcceleration ();
[<Android.Runtime.Register("enableHardwareAcceleration", "()Z", "GetEnableHardwareAccelerationHandler")>]
[<System.Obsolete("deprecated")>]
abstract member EnableHardwareAcceleration : unit -> bool
override this.EnableHardwareAcceleration : unit -> bool

Returns

Boolean

true if accelerated drawing is successfully enabled otherwise false. On API 21 and later devices the return value is basically just a hint and your IME does not need to change the behavior based on the it

Attributes

Remarks

Java documentation for android.inputmethodservice.InputMethodService.enableHardwareAcceleration().

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.

Applies to