WhiteContentModeConfig Class Reference

Inherits from WhiteObject
Declared in WhiteCameraBound.h

Overview

Configurations for the scale mode and scale factor of the viewable area.

– initWithContentMode:

Initialize a WhiteContentMode object.

- (instancetype)initWithContentMode:(WhiteContentMode)scaleMode

Parameters

scaleMode

The scale factor of the viewable area. The default value is 1.0, which means keeping the original size.

Return Value

An initialized WhiteContentMode object.

Declared In

WhiteCameraBound.h

  contentMode

The scale mode of the viewable area. See WhiteContentMode.

@property (nonatomic, assign, readonly) WhiteContentMode contentMode

Declared In

WhiteCameraBound.h

  scale

The scale factor of the viewable area.

@property (nonatomic, assign) CGFloat scale

Discussion

This method takes effect only when the scale mode is set as one the following values:

  • WhiteContentModeScale
  • WhiteContentModeAspectFitScale
  • WhiteContentModeAspectFillScale

Declared In

WhiteCameraBound.h

  space

The space (pixels) added around the viewable area. This method takes effect only when the scaleMode is WhiteContentModeAspectFitSpace.

@property (nonatomic, assign) CGFloat space

Declared In

WhiteCameraBound.h