Aller au contenu

SharingProduct

Ce contenu n’est pas encore disponible dans votre langue.

struct SharingProduct

One product card on the sharing page.

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

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

init(title:link:imageURL:utmContent:details:)

Section titled “init(title:link:imageURL:utmContent:details:)”
init(
title: String,
link: String,
imageURL: String? = nil,
utmContent: String? = nil,
details: ProductDetails? = nil
)
let details: ProductDetails?

Scope fields a campaign’s productScope can target. Composed rather than flattened so bestReward(products:) can take scope-only products with no title at all.

let imageURL: String?
let link: String
let title: String
let utmContent: String?

Highest-priority source for utm_content.

!=(::)

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.