pub type AIBinder_DeathRecipient_onBinderUnlinked = Option<unsafe extern "C" fn(cookie: *mut c_void)>;
Expand description

This function is intended for cleaning up the data in the provided cookie, and it is executed when the DeathRecipient is unlinked. When the DeathRecipient is unlinked due to a death receipt, this method is called after the call to onBinderDied.

This method is called once for each binder that is unlinked. Hence, if the same cookie is passed to multiple binders, then the caller is responsible for reference counting the cookie.

See also AIBinder_linkToDeath/AIBinder_unlinkToDeath.

WARNING: Make sure the lifetime of this cookie is long enough. If it is dynamically allocated, it should be deleted with AIBinder_DeathRecipient_setOnUnlinked.

Available since API level 33.

\param cookie the cookie passed to AIBinder_linkToDeath.

Aliased Type§

enum AIBinder_DeathRecipient_onBinderUnlinked {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void))

Some value of type T.