C# 클래스 OS2Indberetning.ViewModel.GpsViewModel

Viewmodel of the GPS page. Handles all view logic
상속: XLabs.Forms.Mvvm.ViewModel, INotifyPropertyChanged, IDisposable
파일 보기 프로젝트 열기: os2indberetning/OS2_Windows_Phone

공개 메소드들

메소드 설명
Dispose ( ) : void

Method that handles cleanup of the viewmodel

GpsIsAvailable ( ) : void

Method to do stuff when gps is not available

GpsNotAvailable ( ) : void

Method to do stuff when gps is not available

GpsViewModel ( ) : System

Constructor that handles initialization of the viewmodel

HandleAppearedMessage ( object sender ) : void

Method that handles the Appeared message

HandleFinishDriveMessage ( ) : void

Method that handles the FinishDrive message

HandleStopGpsMessage ( ) : void

Method that handles the StopGps message

HandleToggleGpsMessage ( ) : void

Method that handles the ToggleGps message

PauseDistanceTooBig ( double distance ) : void

Method that handles sending a PauseError

PositionChanged ( object sender, XLabs.Platform.Services.Geolocation.PositionEventArgs e ) : void

Method that handles change in positions from the gps signal

SetAccuracy ( double dist = null ) : void

Method to help with setting the correct text for Accuracy

SetupGps ( ) : void

Method that does the initial gps setup

TestForAvailibility ( ) : void

Method that checks for gps signal

TestGpsSignalTimer ( ) : void

Method that checks for gps signal when the gps in on pause The cause of this is to notify the user of gps signal even when he isnt tracking

Timer ( ) : void

Method that handles that tracks if gps signal have been missing for 30 seconds

보호된 메소드들

메소드 설명
OnPropertyChanged ( string propertyName ) : void

비공개 메소드들

메소드 설명
CountDown ( ) : void

Method that does a countdown on the screen. Also makes sure the gps isnt tracked while countdown is active

HandleBackMessage ( ) : void

Method that handles the Back message

PositionError ( object sender, XLabs.Platform.Services.Geolocation.PositionErrorEventArgs e ) : void

Method that gets called when an error event is triggered in the locator

Subscribe ( ) : void

Method that handles subscribing to the needed messages

Unsubscribe ( ) : void

Method that handles unsubscribing

메소드 상세

Dispose() 공개 메소드

Method that handles cleanup of the viewmodel
public Dispose ( ) : void
리턴 void

GpsIsAvailable() 공개 메소드

Method to do stuff when gps is not available
public GpsIsAvailable ( ) : void
리턴 void

GpsNotAvailable() 공개 메소드

Method to do stuff when gps is not available
public GpsNotAvailable ( ) : void
리턴 void

GpsViewModel() 공개 메소드

Constructor that handles initialization of the viewmodel
public GpsViewModel ( ) : System
리턴 System

HandleAppearedMessage() 공개 메소드

Method that handles the Appeared message
public HandleAppearedMessage ( object sender ) : void
sender object
리턴 void

HandleFinishDriveMessage() 공개 메소드

Method that handles the FinishDrive message
public HandleFinishDriveMessage ( ) : void
리턴 void

HandleStopGpsMessage() 공개 메소드

Method that handles the StopGps message
public HandleStopGpsMessage ( ) : void
리턴 void

HandleToggleGpsMessage() 공개 메소드

Method that handles the ToggleGps message
public HandleToggleGpsMessage ( ) : void
리턴 void

OnPropertyChanged() 보호된 메소드

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
리턴 void

PauseDistanceTooBig() 공개 메소드

Method that handles sending a PauseError
public PauseDistanceTooBig ( double distance ) : void
distance double
리턴 void

PositionChanged() 공개 메소드

Method that handles change in positions from the gps signal
public PositionChanged ( object sender, XLabs.Platform.Services.Geolocation.PositionEventArgs e ) : void
sender object
e XLabs.Platform.Services.Geolocation.PositionEventArgs
리턴 void

SetAccuracy() 공개 메소드

Method to help with setting the correct text for Accuracy
public SetAccuracy ( double dist = null ) : void
dist double
리턴 void

SetupGps() 공개 메소드

Method that does the initial gps setup
public SetupGps ( ) : void
리턴 void

TestForAvailibility() 공개 메소드

Method that checks for gps signal
public TestForAvailibility ( ) : void
리턴 void

TestGpsSignalTimer() 공개 메소드

Method that checks for gps signal when the gps in on pause The cause of this is to notify the user of gps signal even when he isnt tracking
public TestGpsSignalTimer ( ) : void
리턴 void

Timer() 공개 메소드

Method that handles that tracks if gps signal have been missing for 30 seconds
public Timer ( ) : void
리턴 void