pub struct AppStore;Expand description
Helpers backed by StoreKit.AppStore.
Implementations§
Source§impl AppStore
impl AppStore
Sourcepub fn age_rating_code() -> Result<Option<i64>, StoreKitError>
pub fn age_rating_code() -> Result<Option<i64>, StoreKitError>
Fetches the age rating code reported by StoreKit.
Sourcepub fn present_merchandising(
kind: &AppStoreMerchandisingKind,
window: &NSWindowHandle,
) -> Result<AppStoreMerchandisingPresentationResult, StoreKitError>
pub fn present_merchandising( kind: &AppStoreMerchandisingKind, window: &NSWindowHandle, ) -> Result<AppStoreMerchandisingPresentationResult, StoreKitError>
Presents StoreKit merchandising UI in the supplied window.
Source§impl AppStore
impl AppStore
Sourcepub fn can_make_payments() -> Result<bool, StoreKitError>
pub fn can_make_payments() -> Result<bool, StoreKitError>
Calls StoreKit.AppStore.canMakePayments.
Sourcepub fn device_verification_id() -> Result<Option<String>, StoreKitError>
pub fn device_verification_id() -> Result<Option<String>, StoreKitError>
Calls the StoreKit device verification identifier API.
Sourcepub fn sync() -> Result<(), StoreKitError>
pub fn sync() -> Result<(), StoreKitError>
Calls StoreKit.AppStore.sync().
Sourcepub fn show_manage_subscriptions() -> Result<(), StoreKitError>
pub fn show_manage_subscriptions() -> Result<(), StoreKitError>
Calls the StoreKit manage-subscriptions API.
Sourcepub fn request_review() -> Result<(), StoreKitError>
pub fn request_review() -> Result<(), StoreKitError>
Calls the StoreKit review-request API.
Sourcepub fn present_offer_code_redeem_sheet() -> Result<(), StoreKitError>
pub fn present_offer_code_redeem_sheet() -> Result<(), StoreKitError>
Calls StoreKit.AppStore.presentOfferCodeRedeemSheet().
Trait Implementations§
impl Copy for AppStore
Auto Trait Implementations§
impl Freeze for AppStore
impl RefUnwindSafe for AppStore
impl Send for AppStore
impl Sync for AppStore
impl Unpin for AppStore
impl UnsafeUnpin for AppStore
impl UnwindSafe for AppStore
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