Function binder_ndk_sys::AIBinder_DeathRecipient_delete

source ยท
pub unsafe extern "C" fn AIBinder_DeathRecipient_delete(
    recipient: *mut AIBinder_DeathRecipient,
)
Expand description

Deletes a binder death recipient. It is not necessary to call AIBinder_unlinkToDeath before calling this as these will all be automatically unlinked.

Be aware that it is not safe to immediately deallocate the cookie when this call returns. If you need to clean up the cookie, you should do so in the onUnlinked callback, which can be set using AIBinder_DeathRecipient_setOnUnlinked.

Available since API level 29.

\param recipient the binder to delete (previously created with AIBinder_DeathRecipient_new).