readOnly

abstract var readOnly: Boolean?(source)

It prevents the user from changing the value of the field (not from interacting with the field).