UALandingPageAction

Objective-C


@interface UALandingPageAction : NSObject <UAAction>

Swift

class LandingPageAction : NSObject, Action

Schedules a landing page to display ASAP.

This action is registered under the names landing_page_action and ^p.

Expected argument values: url: NSString or NSURL. width: Optional Int or String. Width should be specified in points or as “fill” to fill current screen. Defaults to fill. height: Optional Int or String. Height should be specified in points or fill to fill current screen. Defaults to fill. aspect_lock: Optional Boolean. Determines if aspect ratio is maintained during resizing to fit screen size. Defaults to false.

Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush, UASituationWebViewInvocation, UASituationManualInvocation, UASituationForegroundInteractiveButton, and UASituationAutomation

Result value: nil

Fetch result: UAActionFetchResultNewData, or UAActionFetchResultFailed if the data could not be fetched.

  • The border radius in points. Defaults to UALandingPageDefaultBorderRadiusPoints if left unset.

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSNumber *borderRadiusPoints;

    Swift

    unowned(unsafe) var borderRadiusPoints: NSNumber? { get set }
  • Optional message builder extender. Set this to customize aspects of the conversion between legacy landing pages and the new scheduled HTML messages.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<UALandingPageBuilderExtender> _Nullable builderExtender;

    Swift

    weak var builderExtender: LandingPageBuilderExtender? { get set }