pub struct TapSdk { /* private fields */ }Expand description
Main TapTap PC SDK wrapper
This struct represents an initialized SDK instance. Only one instance can exist at a time. When dropped, it will shut down the SDK.
Implementations§
Source§impl TapSdk
impl TapSdk
Sourcepub fn get_client_id(&self) -> Option<String>
pub fn get_client_id(&self) -> Option<String>
Sourcepub fn run_callbacks(&self) -> Vec<TapEvent>
pub fn run_callbacks(&self) -> Vec<TapEvent>
Poll for events from the SDK
This should be called regularly (e.g., in your game loop) to process pending callbacks and receive events.
§Returns
A vector of events that have occurred since the last poll
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TapSdk
impl RefUnwindSafe for TapSdk
impl Send for TapSdk
impl Sync for TapSdk
impl Unpin for TapSdk
impl UnwindSafe for TapSdk
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