Builder
@objc(AASDKTrackingPermissionConfigurationBuilder)
public class Builder : NSObject
Builder class for creating aTrackingPermissionConfiguration
instance.
-
The title configuration.
Declaration
Swift
@objc public func with(title: TrackingPermissionUIElement) -> Builder
Parameters
title
configuration for the title element
Return Value
the same builder object
-
The description configuration.
Declaration
Swift
@objc public func with(description: TrackingPermissionUIElement) -> Builder
Parameters
description
configuration for the description element
Return Value
the same builder object
-
The skip button for the header.
Declaration
Swift
@objc public func with(skip: TrackingPermissionUIElement) -> Builder
Parameters
skip
configuration for the skip element
Return Value
the same builder object
-
The action button.
Declaration
Swift
@objc public func with(action: TrackingPermissionUIElement) -> Builder
Parameters
action
configuration for the action element
Return Value
the same builder object
-
Set the image for header.
Declaration
Swift
@objc public func with(headerImage: UIImage) -> Builder
Parameters
headerImage
the top left header image
Return Value
the same builder object
-
Set the image for main content.
Declaration
Swift
@objc public func with(contentImage: UIImage) -> Builder
Parameters
contentImage
the centered content image
Return Value
the same builder object
-
Set the background color for the tracking permission controller.
Declaration
Swift
@objc public func with(backgroundColor: UIColor) -> Builder
Parameters
backgroundColor
the background color
Return Value
the same builder object
-
Builds a
TrackingPermissionConfiguration
object.Declaration
Swift
@objc public func build() -> TrackingPermissionConfiguration
Return Value
a valid
TrackingPermissionConfiguration
object