binder_ndk_sys

Function AIBinder_Class_define

Source
pub unsafe extern "C" fn AIBinder_Class_define(
    interfaceDescriptor: *const c_char,
    onCreate: AIBinder_Class_onCreate,
    onDestroy: AIBinder_Class_onDestroy,
    onTransact: AIBinder_Class_onTransact,
) -> *mut AIBinder_Class
Expand description

This creates a new instance of a class of binders which can be instantiated. This is called one time during library initialization and cleaned up when the process exits or execs.

None of these parameters can be null.

Available since API level 29.

\param interfaceDescriptor this is a unique identifier for the class. This is used internally for validity checks on transactions. This should be utf-8. \param onCreate see AIBinder_Class_onCreate. \param onDestroy see AIBinder_Class_onDestroy. \param onTransact see AIBinder_Class_onTransact.

\return the class object representing these parameters or null on error.