binder_ndk_sys

Function AIBinder_Weak_new

Source
pub unsafe extern "C" fn AIBinder_Weak_new(
    binder: *mut AIBinder,
) -> *mut AIBinder_Weak
Expand description

This does not take any ownership of the input binder, but it can be used to retrieve it if something else in some process still holds a reference to it.

Available since API level 29.

\param binder object to create a weak pointer to.

\return object representing a weak pointer to binder (or null if binder is null).