C# Class HololensSample.AppView

The IFrameworkView connects the app with Windows and handles application lifecycle events.
Inheritance: IFrameworkView, IDisposable
Mostrar archivo Open project: WaveEngine/Samples

Public Methods

Method Description
AppView ( ) : System
Dispose ( ) : void
Initialize ( CoreApplicationView applicationView ) : void

The first method called when the IFrameworkView is being created. Use this method to subscribe for Windows shell events and to initialize your app.

Load ( string entryPoint ) : void

The Load method can be used to initialize scene resources or to load a previously saved app state.

Run ( ) : void

This method is called after the window becomes active. It oversees the update, draw, and present loop, and also oversees window message processing.

SetWindow ( CoreWindow window ) : void

Called when the CoreWindow object is created (or re-created).

Uninitialize ( ) : void

Terminate events do not cause Uninitialize to be called. It will be called if your IFrameworkView class is torn down while the app is in the foreground. This method is not often used, but IFrameworkView requires it and it will be called for holographic apps.

Private Methods

Method Description
OnKeyPressed ( CoreWindow sender, KeyEventArgs args ) : void
OnResuming ( object sender, object args ) : void
OnSuspending ( object sender, SuspendingEventArgs args ) : void
OnViewActivated ( CoreApplicationView sender, IActivatedEventArgs args ) : void

Called when the app view is activated. Activates the app's CoreWindow.

OnVisibilityChanged ( CoreWindow sender, VisibilityChangedEventArgs args ) : void
OnWindowClosed ( CoreWindow sender, CoreWindowEventArgs arg ) : void

Method Details

AppView() public method

public AppView ( ) : System
return System

Dispose() public method

public Dispose ( ) : void
return void

Initialize() public method

The first method called when the IFrameworkView is being created. Use this method to subscribe for Windows shell events and to initialize your app.
public Initialize ( CoreApplicationView applicationView ) : void
applicationView Windows.ApplicationModel.Core.CoreApplicationView
return void

Load() public method

The Load method can be used to initialize scene resources or to load a previously saved app state.
public Load ( string entryPoint ) : void
entryPoint string
return void

Run() public method

This method is called after the window becomes active. It oversees the update, draw, and present loop, and also oversees window message processing.
public Run ( ) : void
return void

SetWindow() public method

Called when the CoreWindow object is created (or re-created).
public SetWindow ( CoreWindow window ) : void
window Windows.UI.Core.CoreWindow
return void

Uninitialize() public method

Terminate events do not cause Uninitialize to be called. It will be called if your IFrameworkView class is torn down while the app is in the foreground. This method is not often used, but IFrameworkView requires it and it will be called for holographic apps.
public Uninitialize ( ) : void
return void