C# Class XFitWatchface.XFitWatchfaceService.XFitWatchfaceEngine

Inheritance: Engine
Mostrar archivo Open project: xamarin/mini-hacks

Public Methods

Method Description
OnAmbientModeChanged ( bool inAmbientMode ) : void
OnCreate ( ISurfaceHolder surfaceHolder ) : void
OnDataChanged ( DataEventBuffer dataEvents ) : void
OnDraw ( Canvas canvas, Rect bounds ) : void
OnTimeTick ( ) : void
OnVisibilityChanged ( bool visible ) : void
XFitWatchfaceEngine ( CanvasWatchFaceService owner ) : System

Private Methods

Method Description
ConnectFitnessApi ( ) : void
ConnectGoogleApiClient ( ) : void
ConnectWatchfaceConfigUpdates ( ) : void
DrawFace ( Canvas canvas, Rect bounds ) : void
DrawHands ( Canvas canvas, Rect bounds ) : void
DrawStepCount ( Canvas canvas, Rect bounds ) : void
ExtractStepValue ( Bucket bucket ) : int
ExtractStepValue ( DataSet dataSet ) : int
GetTotalSteps ( ) : void
InitBackground ( ) : void
InitPaints ( ) : void
InitStepCountPaint ( ) : void
ShouldTimerBeRunning ( ) : bool
SubscribeToSteps ( ) : void
UpdateStepCount ( ) : void
UpdateTimer ( ) : void

Method Details

OnAmbientModeChanged() public method

public OnAmbientModeChanged ( bool inAmbientMode ) : void
inAmbientMode bool
return void

OnCreate() public method

public OnCreate ( ISurfaceHolder surfaceHolder ) : void
surfaceHolder ISurfaceHolder
return void

OnDataChanged() public method

public OnDataChanged ( DataEventBuffer dataEvents ) : void
dataEvents DataEventBuffer
return void

OnDraw() public method

public OnDraw ( Canvas canvas, Rect bounds ) : void
canvas Canvas
bounds Rect
return void

OnTimeTick() public method

public OnTimeTick ( ) : void
return void

OnVisibilityChanged() public method

public OnVisibilityChanged ( bool visible ) : void
visible bool
return void

XFitWatchfaceEngine() public method

public XFitWatchfaceEngine ( CanvasWatchFaceService owner ) : System
owner CanvasWatchFaceService
return System