SBSDKUICroppingScreenUIConfiguration

@interface SBSDKUICroppingScreenUIConfiguration : NSObject

Configuration for user interface of the page cropping screen.

  • Foreground color of the top bar buttons (Done, Cancel).

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *topBarButtonsColor;

    Swift

    var topBarButtonsColor: UIColor { get set }
  • Background color of the top bar.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *topBarBackgroundColor;

    Swift

    var topBarBackgroundColor: UIColor { get set }
  • Text color of the title in the top bar.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *titleColor;

    Swift

    var titleColor: UIColor { get set }
  • Text color of the hint title.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *hintTitleColor;

    Swift

    var hintTitleColor: UIColor { get set }
  • Foreground color of the rotate button.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *bottomBarButtonsColor;

    Swift

    var bottomBarButtonsColor: UIColor { get set }
  • Background color of the bottom bar.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *bottomBarBackgroundColor;

    Swift

    var bottomBarBackgroundColor: UIColor { get set }
  • The line color of the current polygon that crops the page.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *polygonColor;

    Swift

    var polygonColor: UIColor { get set }
  • The line color of the detected polygon that crops the page.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *polygonColorMagnetic;

    Swift

    var polygonColorMagnetic: UIColor { get set }
  • The color of anchor points.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *anchorPointsColor;

    Swift

    var anchorPointsColor: UIColor? { get set }
  • Background color of the view. Same as viewController.view.backgroundColor.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *backgroundColor;

    Swift

    var backgroundColor: UIColor { get set }
  • Allowed orientations for automatic interface rotations. *

    Declaration

    Objective-C

    @property (nonatomic) SBSDKOrientationLock orientationLockMode;

    Swift

    var orientationLockMode: SBSDKOrientationLock { get set }
  • Whether the rotate button is hidden or not.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isRotateButtonHidden) BOOL rotateButtonHidden;

    Swift

    var isRotateButtonHidden: Bool { get set }
  • Whether the detect/reset button is hidden or not.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isDetectResetButtonHidden) BOOL detectResetButtonHidden;

    Swift

    var isDetectResetButtonHidden: Bool { get set }
  • Defines if the top and bottom buttons are swapped. Default is NO.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isTopAndBottomButtonsSwapped) BOOL topAndBottomButtonsSwapped;

    Swift

    var isTopAndBottomButtonsSwapped: Bool { get set }
  • Defines the width of the polygon line in the cropping view. The default value is 2.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat polygonLineWidth;

    Swift

    var polygonLineWidth: CGFloat { get set }