pub type NfcLoadingCallback = Option<unsafe extern "C" fn(context: *mut c_void, state: bool)>;Expand description
Loading callback function signature.
A function with such signature can be set as a callback to indicate the completion (or a failure) of nfc_device_load() and nfc_device_save() functions.
This facility is commonly used to control GUI elements, such as progress dialogs.
§Arguments
context(direction in) - user-defined context that was passed in nfc_device_set_loading_callback().state(direction in) - true if the data was loaded successfully, false otherwise.
Aliased Type§
pub enum NfcLoadingCallback {
None,
Some(unsafe extern "C" fn(*mut c_void, bool)),
}