pub struct AsyncAppStore;Available on crate feature
async only.Expand description
Async wrapper for AppStore UI APIs.
§Notes
AsyncAppStore::request_reviewrequires macOS 13.0+ and anNSViewController-backed window.AsyncAppStore::show_manage_subscriptionsis scene-based (SwiftUI) and always returns aNotSupportederror on macOS. Consider opening theitms-apps://URL directly forAppKitapps.
Implementations§
Source§impl AsyncAppStore
impl AsyncAppStore
Sourcepub fn request_review() -> RequestReviewFuture ⓘ
pub fn request_review() -> RequestReviewFuture ⓘ
Asynchronously prompt the user for an App Store review.
Equivalent to AppStore.requestReview(in:) in Swift.
§Errors
Returns a NotSupported error when:
- Running on macOS < 13.0.
- No
NSViewController-backed key window is available.
Sourcepub fn show_manage_subscriptions() -> ShowManageSubscriptionsFuture ⓘ
pub fn show_manage_subscriptions() -> ShowManageSubscriptionsFuture ⓘ
Asynchronously show the “Manage Subscriptions” sheet.
Equivalent to AppStore.showManageSubscriptions(in:) in Swift.
§Errors
Always returns a NotSupported error on macOS because
showManageSubscriptions(in:) is scene-based and unavailable in
the macOS StoreKit SDK.
pub fn present_merchandising( kind: &AppStoreMerchandisingKind, window: &NSWindowHandle, ) -> Result<PresentMerchandisingFuture, StoreKitError>
Trait Implementations§
Source§impl Clone for AsyncAppStore
impl Clone for AsyncAppStore
impl Copy for AsyncAppStore
Source§impl Debug for AsyncAppStore
impl Debug for AsyncAppStore
Auto Trait Implementations§
impl Forget for AsyncAppStore
impl Freeze for AsyncAppStore
impl Move for AsyncAppStore
impl RefUnwindSafe for AsyncAppStore
impl Send for AsyncAppStore
impl Sync for AsyncAppStore
impl Unpin for AsyncAppStore
impl UnsafeUnpin for AsyncAppStore
impl UnwindSafe for AsyncAppStore
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