SBSDKUICameraViewController
@interface SBSDKUICameraViewController : SBSDKUIViewController
A SBSDKUIViewController subclass which adds support for enabled and disabled camera permission.
-
Whether the camera access is granted or not.
Declaration
Objective-C
@property (nonatomic, readonly, getter=isCameraAccessGranted) BOOL cameraAccessGranted;
Swift
var isCameraAccessGranted: Bool { get }
-
A container where Enable Camera View should be put.
Declaration
Objective-C
- (nonnull UIView *)containerForEnableCameraView;
Swift
func containerForEnableCameraView() -> UIView
-
A method for subclassing. Override to perform custom actions after checking camera access. For example updating some control visibility.
Declaration
Objective-C
- (void)cameraAccessDidChange:(BOOL)granted;
Swift
func cameraAccessDidChange(_ granted: Bool)
-
A method for subclassing. Override to perform custom actions before appearing of Enable Camera View. For example - show container or hide some buttons.
Declaration
Objective-C
- (void)willShowEnableCameraView;
Swift
func willShowEnableCameraView()
-
A method for subclassing. Override to perform custom actions after disappearing of Enable Camera View. For example - hide container or show some buttons.
Declaration
Objective-C
- (void)didHideEnableCameraView;
Swift
func didHideEnableCameraView()
-
Is called when the application became active
Declaration
Objective-C
- (void)applicationDidBecomeActive;
Swift
func applicationDidBecomeActive()
-
Updates the flash button.
Declaration
Objective-C
- (void)updateFlashButton;
Swift
func updateFlashButton()
-
Called whenever the views layout did change.
Declaration
Objective-C
- (void)updateLayout;
Swift
func updateLayout()
-
A text configuration, used for Enable Camera View.
Declaration
Objective-C
- (nullable SBSDKUIEnableCameraTextConfiguration *) enableCameraTextConfiguration;
Swift
func enableCameraTextConfiguration() -> SBSDKUIEnableCameraTextConfiguration?
-
A UI configuration, used for Enable Camera View.
Declaration
Objective-C
- (nullable SBSDKUIEnableCameraUIConfiguration *)enableCameraUIConfiguration;
Swift
func enableCameraUIConfiguration() -> SBSDKUIEnableCameraUIConfiguration?