#[repr(C)]pub struct ArkWeb_ComponentAPI {
pub size: usize,
pub onControllerAttached: Option<unsafe extern "C" fn(webTag: *const c_char, callback: ArkWeb_OnComponentCallback, userData: *mut c_void)>,
pub onPageBegin: Option<unsafe extern "C" fn(webTag: *const c_char, callback: ArkWeb_OnComponentCallback, userData: *mut c_void)>,
pub onPageEnd: Option<unsafe extern "C" fn(webTag: *const c_char, callback: ArkWeb_OnComponentCallback, userData: *mut c_void)>,
pub onDestroy: Option<unsafe extern "C" fn(webTag: *const c_char, callback: ArkWeb_OnComponentCallback, userData: *mut c_void)>,
}Available on crate features
api-11 and api-12 only.Expand description
Defines the component API for native ArkWeb.
Available since API-level: 12
Fields§
§size: usizeThe ArkWeb_ComponentAPI struct size.
onControllerAttached: Option<unsafe extern "C" fn(webTag: *const c_char, callback: ArkWeb_OnComponentCallback, userData: *mut c_void)>Register the OnControllerAttached callback.
onPageBegin: Option<unsafe extern "C" fn(webTag: *const c_char, callback: ArkWeb_OnComponentCallback, userData: *mut c_void)>Register the OnPageBegin callback.
onPageEnd: Option<unsafe extern "C" fn(webTag: *const c_char, callback: ArkWeb_OnComponentCallback, userData: *mut c_void)>Register the OnPageEnd callback.
onDestroy: Option<unsafe extern "C" fn(webTag: *const c_char, callback: ArkWeb_OnComponentCallback, userData: *mut c_void)>Register the OnDestroy callback.
Auto Trait Implementations§
impl Freeze for ArkWeb_ComponentAPI
impl RefUnwindSafe for ArkWeb_ComponentAPI
impl Send for ArkWeb_ComponentAPI
impl Sync for ArkWeb_ComponentAPI
impl Unpin for ArkWeb_ComponentAPI
impl UnsafeUnpin for ArkWeb_ComponentAPI
impl UnwindSafe for ArkWeb_ComponentAPI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more