C# Class HoloToolkit.Unity.ApplicationViewManager

ApplicationViewManager ( For XAML UWP project) can switch app to Plan View, populate an Application View (New Window of UAP), then navigate the Window root frame to a page. After the page's logic called 'CallbackReturnValue' method, the newly created Application View will be closed, and the system will switch back to your Full3D view. The coroutine which was waiting the callback will get the return value.
Inheritance: MonoBehaviour
显示文件 Open project: microsoft/AppConsult-Samples-MixedReality

Private Properties

Property Type Description
Start void

Public Methods

Method Description
CallbackReturnValue ( object returnValue ) : void

Call this method with Application View Dispatcher, or in Application View Thread, will return to Full3D View and close Application View

OnLaunchXamlView ( string xamlPageName, Action callback, object pageNavigateParameter = null ) : IEnumerator

Call this method in Unity App Thread can switch to Plan View, create and show a new XAML View.

Private Methods

Method Description
Start ( ) : void

Method Details

CallbackReturnValue() public static method

Call this method with Application View Dispatcher, or in Application View Thread, will return to Full3D View and close Application View
public static CallbackReturnValue ( object returnValue ) : void
returnValue object The return value of the XAML View Execution
return void

OnLaunchXamlView() public method

Call this method in Unity App Thread can switch to Plan View, create and show a new XAML View.
public OnLaunchXamlView ( string xamlPageName, Action callback, object pageNavigateParameter = null ) : IEnumerator
xamlPageName string
callback Action
pageNavigateParameter object
return IEnumerator