Skip to main content

SiglusNativeMessageBoxCallback

Type Alias SiglusNativeMessageBoxCallback 

Source
pub type SiglusNativeMessageBoxCallback = unsafe extern "C" fn(user_data: *mut c_void, request_id: u64, kind: i32, title_utf8: *const c_char, message_utf8: *const c_char);
Expand description

Callback used by mobile hosts to show a native dialog on the platform UI thread.

All string pointers are valid only for the duration of the callback. The host must copy them before returning if it needs to keep them. The selected button must be delivered later with the platform-specific siglus_*_submit_messagebox_result ABI.