SBSDKUICameraViewController

@interface SBSDKUICameraViewController : SBSDKUIViewController

A SBSDKUIViewController subclass which adds support for enabled and disabled camera permission.

  • 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()
  • 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?