Builder
@objc(MomentsLinkCTAConfigBuilder)
public final class Builder : NSObject
Builder class of MomentsLinkCTAConfig
-
This function allows your users to select from predefined links in in-app link cta
Declaration
Swift
@objc public func setMomentsLinkItems(items: [MomentsLinkItem]) -> Builder
Parameters
items
Link items that will be shown to the user
Return Value
Current builder
-
This function allows you to change the link text color of the Moments Link CTA view
Declaration
Swift
@objc public func setLinkTextColor(color: UIColor) -> Builder
Parameters
color
Color to set
-
This function determines which options to present to your user for link cta
Declaration
Swift
@objc public func setMomentsLinkCTAState(state: LinkCTAState) -> Builder
Parameters
state
State to present to the user
Return Value
Current builder
-
This function allows you to use custom preview page type
Declaration
Swift
@objc public func setPreviewPageType(isCustom: Bool) -> Builder
Return Value
Current builder
-
This function builds MomentsLinkCTAConfig with the current properties
Declaration
Swift
@objc public func build() -> MomentsLinkCTAConfig
Return Value
MomentsLinkCTAConfig instance