PTAppearance
@interface PTAppearance : NSObject
Class used to customize the appearance of the optional redaction overlay.
-
If RedactionOverlay is set to true, Redactor will draw an overlay covering all redacted regions. The rest of properties in the Appearance class defines visual properties of the overlay. If false the overlay region will not be drawn.
Declaration
Objective-C
- (void)setRedactionOverlay:(BOOL)value;
Swift
func setRedactionOverlay(_ value: Bool)
-
Undocumented
Declaration
Objective-C
- (BOOL)getRedactionOverlay;
Swift
func getRedactionOverlay() -> Bool
-
Border specifies if the overlay will be surrounded by a border.
Declaration
Objective-C
- (void)setBorder:(BOOL)value;
Swift
func setBorder(_ value: Bool)
-
Undocumented
Declaration
Objective-C
- (BOOL)getBorder;
Swift
func getBorder() -> Bool
-
Specifies if the text (e.g. “Redacted” etc.) should be placed on top of the overlay. The remaining properties relate to the positioning, and styling of the overlay text.
Declaration
Objective-C
- (void)setUseOverlayText:(BOOL)value;
Swift
func setUseOverlayText(_ value: Bool)
-
Undocumented
Declaration
Objective-C
- (BOOL)getUseOverlayText;
Swift
func getUseOverlayText() -> Bool
-
Undocumented
Declaration
Objective-C
- (void)setMinFontSize: (double)value;
Swift
func setMinFontSize(_ value: Double)
-
Undocumented
Declaration
Objective-C
- (double)getMinFontSize;
Swift
func getMinFontSize() -> Double
-
Specifies the minimum and maximum font size used to represent the text in the overlay.
Declaration
Objective-C
- (void)setMaxFontSize:(double)value;
Swift
func setMaxFontSize(_ value: Double)
-
Undocumented
Declaration
Objective-C
- (double)getMaxFontSize;
Swift
func getMaxFontSize() -> Double
-
Specifies the horizontal text alignment in the overlay: align<0 -> text will be left aligned. align==0 -> text will be center aligned. align>0 -> text will be right aligned.
Declaration
Objective-C
- (void)setHorizTextAlignment:(int)value;
Swift
func setHorizTextAlignment(_ value: Int32)
-
Undocumented
Declaration
Objective-C
- (int)getHorizTextAlignment;
Swift
func getHorizTextAlignment() -> Int32
-
Specifies the vertical text alignment in the overlay: align<0 -> text will be top aligned. align==0 -> text will be center aligned. align>0 -> text will be bottom aligned.
Declaration
Objective-C
- (void)setVertTextAlignment:(int)value;
Swift
func setVertTextAlignment(_ value: Int32)
-
Undocumented
Declaration
Objective-C
- (int)getVertTextAlignment;
Swift
func getVertTextAlignment() -> Int32
-
Specifies whether an overlay should be drawn in place of the redacted content. This option can be used to indicate the areas where the content was removed from without revealing the content itself. @default Default value is False.
Note
The overlay region used RedactedContentColor as a fill color.Declaration
Objective-C
- (void)setShowRedactedContentRegions:(BOOL)value;
Swift
func setShowRedactedContentRegions(_ value: Bool)
-
Undocumented
Declaration
Objective-C
- (BOOL)getShowRedactedContentRegions;
Swift
func getShowRedactedContentRegions() -> Bool
-
Undocumented
Declaration
Objective-C
- (instancetype)init;
Swift
init!()