Skip to content

SharingRequest

struct SharingRequest

What to share, and how to attribute it.

Conforms to Swift.Equatable, Swift.Hashable, Swift.Sendable

Defined in: Sources/FrakSDK/Sharing/SharingRequest.swift:59

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
)
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.

let logoURL: String?
let placement: String?

Where in the app the share was offered, e.g. product-page.

let products: [SharingProduct]
let shareImageURL: String?
let shareText: String?
let shareTitle: String?

Per-call overrides for the OS share sheet’s title/body/preview image; highest precedence.

let targetInteraction: String?

Narrows the seeded reward to campaigns with this trigger, e.g. purchase.

!=(::)

static func != (lhs: Self, rhs: Self) -> Bool

Returns 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.