Pregunta

Hello I was wondering how to do the following:

CheckBoxPreference mCheckBox = (CheckBoxPreference) findPreference("key");

except in mirah?                                     ^^^^^^^^^^^^^^^^^^^^^^^
                                                                This cast here is what I don't know how to translate into mirah.

¿Fue útil?

Solución

From what I understand, casting in Mirah is in the form of wrapping the object in the form of TypeToCastTo(ObjectToCast), for example:

mCheckBox = CheckBoxPreference(findPreference("key"));

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top