SBSDKOrientationLock

enum SBSDKOrientationLock : NSInteger {}

This enum describes the available orientation lock modes for the user interface. Captured images are always top-oriented to the status bar.

  • The orientation is not locked. The captured image is orientated so that the upper area of the image is directed towards the status bar. The image either has a landscape or portrait aspect ratio.

    Declaration

    Objective-C

    SBSDKOrientationLockNone = 0

    Swift

    case none = 0
  • The orientation is locked to the portrait modes. The captured image is orientated so that the upper area of the image is directed towards the status bar. The image always has a portrait aspect ratio.

    Declaration

    Objective-C

    SBSDKOrientationLockPortrait = 1

    Swift

    case portrait = 1
  • The orientation is locked to the landscape modes. The captured image is orientated so that the upper area of the image is directed towards the status bar. The image always has a landscape aspect ratio.

    Declaration

    Objective-C

    SBSDKOrientationLockLandscape = 2

    Swift

    case landscape = 2