C# 클래스 BlinkIDDemo.MainPage

Main application page containing RecognizerControl
상속: PhoneApplicationPage
파일 보기 프로젝트 열기: BlinkID/blinkid-windowsPhone

공개 메소드들

메소드 설명
MainPage ( ) : System

Default construtor. Initializes component(page) and RecognizerControl

mRecognizer_OnCameraError ( Microblink error ) : void

Here camera errors should be handled.

mRecognizer_OnDisplayOcrResult ( Microblink result ) : void
mRecognizer_OnInitializationError ( InitializationErrorType errorType ) : void

Handles initialization error(invalid license)

mRecognizer_OnScanningDone ( IList resultList, RecognitionType recognitionType ) : void

Handles completed scanning events. Navigates to results page if scanning was successful.

보호된 메소드들

메소드 설명
OnNavigatedTo ( System.Windows.Navigation.NavigationEventArgs e ) : void

Called when this page is navigated to. Starts the recognition process.

OnNavigatingFrom ( System.Windows.Navigation.NavigatingCancelEventArgs e ) : void

Called when the user leaves this page. Stops the recognition process.

OnOrientationChanged ( OrientationChangedEventArgs e ) : void

Handles orientation change event by animating buttons and rectangle and forwarding the event to RecognizerControl

비공개 메소드들

메소드 설명
AnimateButtons ( OrientationChangedEventArgs e ) : void

Animate rotation of "Cancel" and "Light" buttons on orientation change.

InitializeRecognizer ( ) : void

Initializes the RecognizerControl

mCancelButton_Click ( object sender, RoutedEventArgs e ) : void

Handles "Cancel" button click event by terminating RecognizerControl and shuting down the application.

mCancelButton_Loaded ( object sender, RoutedEventArgs e ) : void

Sets up "Cancel" button rotation center to be at the center of the button. We must do it at button loaded event when button dimensions are known.

mLightButton_Click ( object sender, RoutedEventArgs e ) : void

Handles "Light" button click event.

mLightButton_Loaded ( object sender, RoutedEventArgs e ) : void

Sets up "Light" button rotation center to be at the center of the button. We must do it at button loaded event when button dimensions are known.

메소드 상세

MainPage() 공개 메소드

Default construtor. Initializes component(page) and RecognizerControl
public MainPage ( ) : System
리턴 System

OnNavigatedTo() 보호된 메소드

Called when this page is navigated to. Starts the recognition process.
protected OnNavigatedTo ( System.Windows.Navigation.NavigationEventArgs e ) : void
e System.Windows.Navigation.NavigationEventArgs
리턴 void

OnNavigatingFrom() 보호된 메소드

Called when the user leaves this page. Stops the recognition process.
protected OnNavigatingFrom ( System.Windows.Navigation.NavigatingCancelEventArgs e ) : void
e System.Windows.Navigation.NavigatingCancelEventArgs
리턴 void

OnOrientationChanged() 보호된 메소드

Handles orientation change event by animating buttons and rectangle and forwarding the event to RecognizerControl
protected OnOrientationChanged ( OrientationChangedEventArgs e ) : void
e OrientationChangedEventArgs orientation change event info
리턴 void

mRecognizer_OnCameraError() 공개 메소드

Here camera errors should be handled.
public mRecognizer_OnCameraError ( Microblink error ) : void
error Microblink
리턴 void

mRecognizer_OnDisplayOcrResult() 공개 메소드

public mRecognizer_OnDisplayOcrResult ( Microblink result ) : void
result Microblink
리턴 void

mRecognizer_OnInitializationError() 공개 메소드

Handles initialization error(invalid license)
public mRecognizer_OnInitializationError ( InitializationErrorType errorType ) : void
errorType InitializationErrorType initialization error type(only INVALID_LICENSE_KEY at the moment)
리턴 void

mRecognizer_OnScanningDone() 공개 메소드

Handles completed scanning events. Navigates to results page if scanning was successful.
public mRecognizer_OnScanningDone ( IList resultList, RecognitionType recognitionType ) : void
resultList IList list of recognition results
recognitionType RecognitionType type of recognition
리턴 void