Position

@objc(PBMPosition)
public enum Position : Int

Enum representing various positions on the screen.

This enum defines positions that can be used for placing elements within an ad. The positions are typically used to determine where controls or components should be located within the ad’s user interface.

  • Undocumented

    Declaration

    Swift

    case undefined = -1
  • Undocumented

    Declaration

    Swift

    case topLeft
  • Undocumented

    Declaration

    Swift

    case topCenter
  • Undocumented

    Declaration

    Swift

    case topRight
  • Undocumented

    Declaration

    Swift

    case center
  • Undocumented

    Declaration

    Swift

    case bottomLeft
  • Undocumented

    Declaration

    Swift

    case bottomCenter
  • Undocumented

    Declaration

    Swift

    case bottomRight
  • Undocumented

    Declaration

    Swift

    case custom
  • Returns the corresponding Position enum value for a given string literal.

    Declaration

    Swift

    public static func getPositionByStringLiteral(_ stringValue: String) -> Position?

    Parameters

    stringValue

    A string representing the position.

    Return Value

    The Position enum value if it matches one of the predefined cases; otherwise, returns nil.