//! A module wrapping `NSUserActivity`. use objc::runtime::Object; use objc_id::ShareId; use crate::foundation::id; /// Represents an `NSUserActivity`, which acts as a lightweight method to capture the state of your /// app. pub struct UserActivity { pub inner: ShareId } impl UserActivity { /// An internal method for wrapping a system-provided activity. pub(crate) fn with_inner(object: id) -> Self { UserActivity { inner: unsafe { ShareId::from_ptr(object) } } } }