pub enum FunnelEffect {
Dismiss,
OpenUrl {
url: String,
},
ShowAlert {
title: Option<String>,
message: String,
button_label: Option<String>,
},
Custom {
action_id: String,
params_json: String,
},
Purchase {
package_id: String,
},
RestorePurchases,
}Expand description
What the host must do, as the façades see it.
SetAttribute is deliberately absent. librovenue intercepts it below
and routes it into the existing attributes module, so it never crosses
this boundary and is never implemented three times.
Variants§
Dismiss
Close the funnel’s view. Produced by close_funnel.
OpenUrl
Open a URL. Unlike the web funnel this does not end the funnel: an app deep-link scheme is legitimate here, and handing off to another app leaves the session where it was.
ShowAlert
Show an alert. Already localized and interpolated.
Fields
Optional dismiss-button label.
Custom
An app-defined action the funnel author named.
Fields
Purchase
Buy the selected package through StoreKit / Play Billing.
RestorePurchases
Restore previous purchases.
Trait Implementations§
Source§impl Clone for FunnelEffect
impl Clone for FunnelEffect
Source§fn clone(&self) -> FunnelEffect
fn clone(&self) -> FunnelEffect
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunnelEffect
impl Debug for FunnelEffect
Source§impl PartialEq for FunnelEffect
impl PartialEq for FunnelEffect
impl StructuralPartialEq for FunnelEffect
Auto Trait Implementations§
impl Freeze for FunnelEffect
impl RefUnwindSafe for FunnelEffect
impl Send for FunnelEffect
impl Sync for FunnelEffect
impl Unpin for FunnelEffect
impl UnwindSafe for FunnelEffect
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