SharingRequest
struct SharingRequestWhat to share, and how to attribute it.
Conforms to Swift.Equatable, Swift.Hashable, Swift.Sendable
Defined in: Sources/FrakSDK/Sharing/SharingRequest.swift:59
Initializers
Section titled “Initializers”init(link:products:attribution:targetInteraction:placement:logoURL:shareTitle:shareText:shareImageURL:)
Section titled “init(link:products:attribution:targetInteraction:placement:logoURL:shareTitle:shareText:shareImageURL:)”init( link: String? = nil, products: [SharingProduct] = [], attribution: AttributionParams? = nil, targetInteraction: String? = nil, placement: String? = nil, logoURL: String? = nil, shareTitle: String? = nil, shareText: String? = nil, shareImageURL: String? = nil)Properties
Section titled “Properties”attribution
Section titled “attribution”let attribution: AttributionParams?let link: String?Base URL to build the link from. Falls back to the first product’s link, then the merchant’s homepage.
logoURL
Section titled “logoURL”let logoURL: String?placement
Section titled “placement”let placement: String?Where in the app the share was offered, e.g. product-page.
products
Section titled “products”let products: [SharingProduct]shareImageURL
Section titled “shareImageURL”let shareImageURL: String?shareText
Section titled “shareText”let shareText: String?shareTitle
Section titled “shareTitle”let shareTitle: String?Per-call overrides for the OS share sheet’s title/body/preview image; highest precedence.
targetInteraction
Section titled “targetInteraction”let targetInteraction: String?Narrows the seeded reward to campaigns with this trigger, e.g. purchase.
Operators
Section titled “Operators”!=(::)
static func != (lhs: Self, rhs: Self) -> BoolReturns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values a and b, a != b
implies that a == b is false.
This is the default implementation of the not-equal-to operator (!=)
for any type that conforms to Equatable.
- Parameters:
- lhs: A value to compare.
- rhs: Another value to compare.