C# Class PDF417Demo.MainPage

Main application page containing RecognizerControl
Inheritance: PhoneApplicationPage
Afficher le fichier Open project: PDF417/pdf417-windows-phone

Méthodes publiques

Méthode Description
MainPage ( ) : System

Default construtor. Initializes component(page) and RecognizerControl

mRecognizer_OnCameraError ( Microblink error ) : void

Here camera errors should be handled.

mRecognizer_OnDisplayDefaultTarget ( DetectionStatus detectionStatus ) : void
mRecognizer_OnDisplayNewTarget ( Windows uleft, Windows uright, Windows lleft, Windows lright, DetectionStatus detectionStatus ) : void
mRecognizer_OnDisplayPointSet ( IList points ) : 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.

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

MainPage() public méthode

Default construtor. Initializes component(page) and RecognizerControl
public MainPage ( ) : System
Résultat System

OnNavigatedTo() protected méthode

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

OnNavigatingFrom() protected méthode

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

OnOrientationChanged() protected méthode

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
Résultat void

mRecognizer_OnCameraError() public méthode

Here camera errors should be handled.
public mRecognizer_OnCameraError ( Microblink error ) : void
error Microblink
Résultat void

mRecognizer_OnDisplayDefaultTarget() public méthode

public mRecognizer_OnDisplayDefaultTarget ( DetectionStatus detectionStatus ) : void
detectionStatus DetectionStatus
Résultat void

mRecognizer_OnDisplayNewTarget() public méthode

public mRecognizer_OnDisplayNewTarget ( Windows uleft, Windows uright, Windows lleft, Windows lright, DetectionStatus detectionStatus ) : void
uleft Windows
uright Windows
lleft Windows
lright Windows
detectionStatus DetectionStatus
Résultat void

mRecognizer_OnDisplayPointSet() public méthode

public mRecognizer_OnDisplayPointSet ( IList points ) : void
points IList
Résultat void

mRecognizer_OnInitializationError() public méthode

Handles initialization error(invalid license)
public mRecognizer_OnInitializationError ( InitializationErrorType errorType ) : void
errorType InitializationErrorType initialization error type(only INVALID_LICENSE_KEY at the moment)
Résultat void

mRecognizer_OnScanningDone() public méthode

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
Résultat void