SBSDKShutterButton

@interface SBSDKShutterButton : UIButton

@class SBSDKShutterButton The button class used in the camera view controller to take a snapshot. Animates itself depending on its status.

  • Indicates, whether a still image is currently being taken or not. If YES a UIActivityIndicator is shown in the center.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL takingPhoto;

    Swift

    var takingPhoto: Bool { get set }
  • The current status of the receiver. See SBSDKScannerStatus.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) int scannerStatus;

    Swift

    var scannerStatus: SBSDKScannerStatus { get set }
  • The main color of shutter button while scannerStatus is SBSDKScannerStatusScanning. Can be nil. Default is white.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *buttonSearchingColor;

    Swift

    var buttonSearchingColor: UIColor! { get set }
  • The main color of shutter button while scannerStatus is SBSDKScannerStatusDetected. Can be nil. Default is white.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *buttonDetectedColor;

    Swift

    var buttonDetectedColor: UIColor! { get set }
  • The background color of shutter button while scannerStatus is SBSDKScannerStatusScanning. Can be nil. Default is clear color.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *buttonSearchingBackgroundColor;

    Swift

    var buttonSearchingBackgroundColor: UIColor! { get set }
  • The background color of shutter button while scannerStatus is SBSDKScannerStatusDetected. Can be nil. Default is clear color.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *buttonDetectedBackgroundColor;

    Swift

    var buttonDetectedBackgroundColor: UIColor! { get set }
  • The color of indicator shown, when takingPhoto is set to YES.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *indicatorColor;

    Swift

    var indicatorColor: UIColor! { get set }