Functions

The following functions are available globally.

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

    Declaration

    Objective-C

    _Bool isDetectionStatusOK(SBSDKDocumentDetectionStatus status)

    Swift

    func isDetectionStatusOK(_ status: SBSDKDocumentDetectionStatus) -> Bool

    Parameters

    status

    The status to check.

    Return Value

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

  • Returns the interface orientation mask for the given orientation lock mode.

    Declaration

    Objective-C

    static inline UIInterfaceOrientationMask
    orientationsFromLock(SBSDKOrientationLock mode)

    Swift

    func orientationsFromLock(_ mode: SBSDKOrientationLock) -> UIInterfaceOrientationMask

    Parameters

    mode

    The orientation lock mode.

    Return Value

    The resulting user interface orientation mask.