pub unsafe extern "C" fn APersistableBundle_getString(
pBundle: *const APersistableBundle,
key: *const c_char,
val: *mut *mut c_char,
stringAllocator: Option<unsafe extern "C" fn(arg1: i32, arg2: *mut c_void) -> *mut c_char>,
context: *mut c_void,
) -> i32Expand description
Get a string associated with the provided key. The caller is responsible for freeing the returned data.
Available since API level 202404.
\param pBundle to operate on \param key for the mapping in UTF-8 \param val pointer to write the value to in UTF-8 \param stringAllocator function pointer to the string allocator \param context pointer that will be passed to the stringAllocator
\return size of string in bytes associated with the provided key on success APERSISTABLEBUNDLE_KEY_NOT_FOUND if the key was not found APERSISTABLEBUNDLE_ALLOCATOR_FAILED if the provided allocator fails