android :: Bundle :: array_of_char
Array[Char]
value corresponding to the given keyReturns the null
if none or if it's the wrong value type
FIXME: Java's char
are encoded on 16-bits whereas Nit's are on 8-bits.
# Retrieves the `Array[Char]` value corresponding to the given key
# Returns the `null` if none or if it's the wrong value type
# FIXME: Java's `char` are encoded on 16-bits whereas Nit's are on 8-bits.
fun array_of_char(key: String): nullable Array[Char]
do
sys.jni_env.push_local_frame(1)
var return_value = native_bundle.get_char_array(key.to_java_string)
sys.jni_env.pop_local_frame
if return_value.is_empty then return null
return return_value
end
lib/android/bundle/bundle.nit:616,2--628,4