SBSDKDeviceInformation

@interface SBSDKDeviceInformation : NSObject

Delivers information about the iOS device.

  • Static object. Use the class methods.

    Declaration

    Objective-C

    - (instancetype)init;
  • The name of the device.

    Declaration

    Objective-C

    + (NSString *)deviceName;

    Swift

    class func deviceName() -> String!
  • The full name of the device including the iOS version.

    Declaration

    Objective-C

    + (NSString *)fullDeviceName;

    Swift

    class func fullDeviceName() -> String!
  • Returns YES if the device should use medium scan quality, NO otherwise.

    Declaration

    Objective-C

    + (BOOL)deviceUsesMediumScanQuality;

    Swift

    class func deviceUsesMediumScanQuality() -> Bool
  • Returns YES if the device is able to perform live video processing, NO otherwise.

    Declaration

    Objective-C

    + (BOOL)deviceUsesVideoProcessing;

    Swift

    class func deviceUsesVideoProcessing() -> Bool
  • Returns YES if the device should use low performance document detection, NO otherwise.

    Declaration

    Objective-C

    + (BOOL)deviceUsesLowPerformanceDetection;

    Swift

    class func deviceUsesLowPerformanceDetection() -> Bool
  • Returns YES if the device works better with the ultra-wide camera.

    Declaration

    Objective-C

    + (BOOL)devicePrefersUltraWideCamera;

    Swift

    class func devicePrefersUltraWideCamera() -> Bool
  • Returns YES if the device works better without image stabilization.

    Declaration

    Objective-C

    + (BOOL)deviceShouldDisableImageStabilization;

    Swift

    class func deviceShouldDisableImageStabilization() -> Bool
  • Returns YES if the current device is a simulator, NO otherwise.

    Declaration

    Objective-C

    + (BOOL)isSimulatorDevice;

    Swift

    class func isSimulatorDevice() -> Bool
  • The total amount of disk space of the device in bytes.

    Declaration

    Swift

    @objc
    static func totalDiskSpaceInBytes() -> Int64

    Return Value

    The total amount of disk space of the device in bytes. In case of error the return value is -1.

  • The amount of unused disk space of the device in bytes.

    Declaration

    Swift

    @objc
    static func freeDiskSpaceInBytes() -> Int64

    Return Value

    The amount of unused disk space of the device in bytes. In case of error the return value is -1.

  • The amount of used disk space of the device in bytes.

    Declaration

    Swift

    @objc
    static func usedDiskSpaceInBytes() -> Int64

    Return Value

    The amount of used disk space of the device in bytes. In case of error the return value is -1.

  • The total amount of disk space of the device as a formatted and localized string.

    Declaration

    Swift

    @objc
    static func totalDiskSpace() -> String

    Return Value

    The total amount of disk space of the device as a formatted and localized string.

  • The amount of unused disk space of the device as a formatted and localized string.

    Declaration

    Swift

    @objc
    static func freeDiskSpace() -> String

    Return Value

    The amount of unused disk space of the device as a formatted and localized string.

  • The amount of used disk space of the device as a formatted and localized string.

    Declaration

    Swift

    @objc
    static func usedDiskSpace() -> String

    Return Value

    The amount of used disk space of the device as a formatted and localized string.