Objective-C API Library Reference  4.3.0-42-g45f162a
 All Classes Functions Typedefs Properties Pages
Public Functions | Public Static Functions | Properties | List of all members
PWEncoderConfiguration Class Reference

The PWEncoderConfiguration class is used to define the encoding format (mime type) and encoding quality for each view in the application. It provides two PWEncoderFormat objects: one for full quality mode, and one for interactive quality mode.

The purpose of the view interactivity modes is to make it possible to send images of lower quality when the end user is interacting with a view, and to restore full quality when interaction stops. This way, the size of the view updates during interaction can be smaller, which provides a better trade-off between frame rate when interacting, and image quality when not interacting. The interactivity mode is set on the service using the SetViewInteracting method in the ViewManager class.

To set a PWEncoderConfiguration object as the default configuration for a view, use the method provided by the PWViewDelegate protocol.

Constructors

(id) - initWithInteractiveQuality:fullQuality:
 

Public Functions

(BOOL) - isEqual:
 

Public Static Functions

(PWEncoderConfiguration *) + configurationWithInteractiveQuality:fullQuality:
 

Properties

PWEncoderFormatfullQuality
 
PWEncoderFormatinteractiveQuality
 

Methods Descriptions

+ (PWEncoderConfiguration *) configurationWithInteractiveQuality: (PWEncoderFormat *)  interactiveQuality
fullQuality: (PWEncoderFormat *)  fullQuality 

Creates an instance of PWEncoderConfiguration with defined formats.

Parameters
interactiveQualityThe encoder format used in interactive mode.
fullQualityThe encoder format used in non-interactive mode.
- (id) initWithInteractiveQuality: (PWEncoderFormat *)  interactiveQuality
fullQuality: (PWEncoderFormat *)  fullQuality 

Initializes an instance of PWEncoderConfiguration.

- (BOOL) isEqual: (id)  object

Compares this encoder configuration against the specified object. Returns true if they are equal, otherwise returns false.

Properties Descriptions

- (PWEncoderFormat*) fullQuality
readnonatomicstrong

The PWEncoderFormat object that defines the parameters (mime type, quality, etc.) to be used by the service application when sending images in full quality (non-interactive) mode.

- (PWEncoderFormat*) interactiveQuality
readnonatomicstrong

The PWEncoderFormat object that defines the parameters (mime type, quality, etc.) to be used by the service application when sending images in interactive mode.