JWCaptionPosition
@objcMembers
public final class JWCaptionPosition : NSObject
extension JWCaptionPosition: DeepCopying
extension JWCaptionPosition: JWJSONCodable
An object describing the position, size, and behavior of a caption on the screen. In order to instantiate an instance of this class, use JWCaptionPositionBuilder
.
-
The width of the text area, expressed as a pecentage.
Declaration
Swift
public internal(set) var width: Int? { get }
-
The alignment of the text within the text area.
Declaration
Swift
public internal(set) var alignment: JWCaptionAlignment? { get }
-
The horizontal position of the text within the text area, expressed as a percentage.
Declaration
Swift
public internal(set) var position: Int? { get }
-
The vertical positioning of the text within the text area, expressed as a percentage.
Declaration
Swift
public internal(set) var linePercentage: Int? { get }
-
The vertical positioning of the text within the text area, expressed by line number.
Declaration
Swift
public internal(set) var lineIndex: Int? { get }
-
Declaration
Swift
public func deepCopy() -> `Self`?
-
Declaration
Swift
public func toJSONObject() -> JSONObject
-
Declaration
Swift
public convenience init?(from json: JSONObject)