Conforms to NSObject
Declared in MAWMathView.h

Overview

The MAWMathViewDelegate protocol defines the methods you can implement to be notified of the activity of a MAWMathView object. These methods allow to monitor events such as configuration, recognition or a change in the Undo Redo stack.

All of the methods in this protocol are optional.

Instance Methods

mathView:didChangeUsingAngleUnit:

Tells the delegate that the Math Widget has started or has stopped using an angle unit.

- (void)mathView:(MAWMathView *)mathView didChangeUsingAngleUnit:(BOOL)used

Parameters

mathView

The math view that has started or has stopped using an angle unit.

used

YES if the current operation is using an angle unit; otherwise, NO.

Declared In

MAWMathView.h

mathView:didFailConfigurationWithError:

Tells the delegate that the Math Widget has failed its configuration.

- (void)mathView:(MAWMathView *)mathView didFailConfigurationWithError:(NSError *)error

Parameters

mathView

The math view that has failed its configuration.

error

An NSError object that encapsulates information why configuration failed.

Declared In

MAWMathView.h

mathView:didPenDownWithCaptureInfo:

Tells the delegate that math user has started touching the screen.

- (void)mathView:(MAWMathView *)mathView didPenDownWithCaptureInfo:(MAWCaptureInfo *)captureInfo

Parameters

mathView

The math view receiving touches.

captureInfo

Coordinates and other information about touch sample.

Declared In

MAWMathView.h

mathView:didPenMoveWithCaptureInfo:

Tells the delegate that math user continue to touch the screen.

- (void)mathView:(MAWMathView *)mathView didPenMoveWithCaptureInfo:(MAWCaptureInfo *)captureInfo

Parameters

mathView

The math view receiving touches.

captureInfo

Coordinates and other information about touch sample.

Declared In

MAWMathView.h

mathView:didPenUpWithCaptureInfo:

Tells the delegate that math user has ending touching the screen.

- (void)mathView:(MAWMathView *)mathView didPenUpWithCaptureInfo:(MAWCaptureInfo *)captureInfo

Parameters

mathView

The math view receiving touches.

captureInfo

Coordinates and other information about touch sample.

Declared In

MAWMathView.h

mathView:didPerformEraseGesture:

Tells the delegate that the Math Widget has detected an erase gesture.

- (void)mathView:(MAWMathView *)mathView didPerformEraseGesture:(BOOL)partial

Parameters

mathView

The math view that has detected an erase gesture.

partial

YES if the all the equation was deleted; otherwise, NO.

Declared In

MAWMathView.h

mathViewDidBeginConfiguration:

Tells the delegate that the Math Widget has started its configuration.

- (void)mathViewDidBeginConfiguration:(MAWMathView *)mathView

Parameters

mathView

The math view that has started its configuration.

Declared In

MAWMathView.h

mathViewDidBeginRecognition:

Tells the delegate that the Math Widget has begun a recognition session.

- (void)mathViewDidBeginRecognition:(MAWMathView *)mathView

Parameters

mathView

The math view that has begun a recognition process.

Discussion

A recognition session starts when the user starts writing on the screen. The session can also start after an undo or redo or a after any context restoration such as screen rotation.

Declared In

MAWMathView.h

mathViewDidChangeUndoRedoState:

Tells the delegate that the Math Widget Undo/Redo stack has changed.

- (void)mathViewDidChangeUndoRedoState:(MAWMathView *)mathView

Parameters

mathView

The math view whose Undo/Redo stack has changed.

Declared In

MAWMathView.h

mathViewDidEndConfiguration:

Tells the delegate that the Math Widget has ended its configuration with success.

- (void)mathViewDidEndConfiguration:(MAWMathView *)mathView

Parameters

mathView

The math view that has ended its configuration.

Declared In

MAWMathView.h

mathViewDidEndRecognition:

Tells the delegate that the Math Widget has ended a recognition process.

- (void)mathViewDidEndRecognition:(MAWMathView *)mathView

Parameters

mathView

The math view that has ended a recognition process.

Declared In

MAWMathView.h

mathViewDidPenAbort:

Tells the delegate that the user has aborted touching the screen.

- (void)mathViewDidPenAbort:(MAWMathView *)mathView

Parameters

mathView

The math view that has stopped receiving touches.

Declared In

MAWMathView.h