Functions

The following functions are available globally.

  • Checks, if the status is on of the OK statuses.

    Declaration

    Objective-C

    _Bool isDetectionStatusOK(SBSDKDocumentDetectionStatus status)

    Parameters

    status

    The status to check.

    Return Value

    True, if the status in one of the OK statuses. False otherwise.

  • Undocumented

    Declaration

    Objective-C

    inline static UIInterfaceOrientationMask orientationsFromLock(SBSDKOrientationLock mode) {
        switch(mode) {
            case SBSDKOrientationLockNone: 
                return UIInterfaceOrientationMaskAll;
                break;
            case SBSDKOrientationLockPortrait:
                return UIInterfaceOrientationMaskPortrait;
                break;
            case SBSDKOrientationLockLandscape:
                return UIInterfaceOrientationMaskLandscape;
                break;
        }
    }

    Swift

    func orientationsFromLock(_ mode: SBSDKOrientationLock) -> UIInterfaceOrientationMask