Builder
open class Builder
-
Sets the text for the first paragraph
Declaration
Swift
public func set(paragraph1: String) -> Builder
Parameters
paragraph1
text for the first paragraph (may include
\n
) -
Sets the text for the second paragraph
Declaration
Swift
public func set(paragraph2: String) -> Builder
Parameters
paragraph2
text for the second paragraph (may include
\n
) -
Sets the text for the third paragraph
Declaration
Swift
public func set(paragraph3: String) -> Builder
Parameters
paragraph3
text for the third paragraph (may include
\n
) -
Sets the text for the fourth paragraph
Declaration
Swift
public func set(paragraph4: String) -> Builder
Parameters
paragraph4
text for the fourth paragraph (may include
\n
) -
Sets the text for the Cancel button
Declaration
Swift
public func set(cancelText: String) -> Builder
Parameters
cancelText
text for Cancel button’s label
-
Sets the text for the Accept button
Declaration
Swift
public func set(okText: String) -> Builder
Parameters
okText
text for Accept button’s label
-
Sets the URL for the Developer’s face UIImage
Declaration
Swift
public func set(faceUrl: String) -> Builder
Parameters
faceUrl
string to build the URL providing the image
-
Sets the URL for the Banner UIImage
Declaration
Swift
public func set(bannerUrl: String) -> Builder
Parameters
bannerUrl
string to build the URL providing the image
-
Sets the URL for the App Store rating
Declaration
Swift
public func buildAppStoreUrl(with appID: String) -> Builder
Parameters
appID
Application’s app ID, can be found in iTunes Connect
-
Sets the URL for the App Store rating
Declaration
Swift
public func set(appStoreUrl: String) -> Builder
Parameters
appStoreUrl
string to build the URL wher user can rate the app
-
Sets the tint color used for the cancel button’s text and accept button’s background color.
Declaration
Swift
public func set(tintColor: UIColor) -> Builder
Parameters
tintColor
used for the accept and cancel buttons
-
Sets the rootView
UIView
where the overlay ad will be added as a subviewDeclaration
Swift
public func set(rootView: UIView) -> Builder
Parameters
rootView
used as host to add the ad overlay as subview
-
Returns the finalized RatingDialog object after setting all its properties
Declaration
Swift
public func build()