pub struct ExternalPurchaseCustomLink;Expand description
Helpers backed by StoreKit external purchase custom link APIs.
Implementations§
Source§impl ExternalPurchaseCustomLink
impl ExternalPurchaseCustomLink
Sourcepub fn is_eligible() -> Result<bool, StoreKitError>
pub fn is_eligible() -> Result<bool, StoreKitError>
Returns whether StoreKit reports that the custom link flow is eligible.
Sourcepub fn show_notice(
notice_type: ExternalPurchaseCustomLinkNoticeType,
) -> Result<ExternalPurchaseCustomLinkNoticeResult, StoreKitError>
pub fn show_notice( notice_type: ExternalPurchaseCustomLinkNoticeType, ) -> Result<ExternalPurchaseCustomLinkNoticeResult, StoreKitError>
Presents the StoreKit custom-link notice UI.
Sourcepub fn token(
token_type: &str,
) -> Result<Option<ExternalPurchaseCustomLinkToken>, StoreKitError>
pub fn token( token_type: &str, ) -> Result<Option<ExternalPurchaseCustomLinkToken>, StoreKitError>
Fetches a custom-link token from StoreKit.
Trait Implementations§
Source§impl Clone for ExternalPurchaseCustomLink
impl Clone for ExternalPurchaseCustomLink
impl Copy for ExternalPurchaseCustomLink
Source§impl Debug for ExternalPurchaseCustomLink
impl Debug for ExternalPurchaseCustomLink
Auto Trait Implementations§
impl Forget for ExternalPurchaseCustomLink
impl Freeze for ExternalPurchaseCustomLink
impl Move for ExternalPurchaseCustomLink
impl RefUnwindSafe for ExternalPurchaseCustomLink
impl Send for ExternalPurchaseCustomLink
impl Sync for ExternalPurchaseCustomLink
impl Unpin for ExternalPurchaseCustomLink
impl UnsafeUnpin for ExternalPurchaseCustomLink
impl UnwindSafe for ExternalPurchaseCustomLink
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