Function binder_ndk_sys::AIBinder_Weak_clone

source ยท
pub unsafe extern "C" fn AIBinder_Weak_clone(
    weak: *const AIBinder_Weak,
) -> *mut AIBinder_Weak
Expand description

Clone an AIBinder_Weak. Useful because even if a weak binder promotes to a null value, after further binder transactions, it may no longer promote to a null value.

Available since API level 31.

\param weak Object to clone

\return clone of the input parameter. This must be deleted with AIBinder_Weak_delete. Null if weak input parameter is also null.