DevicePortal Class

Definition

Function used to communicate with Windows 10 devices through the device portal REST APIs.

C++
public ref class DevicePortal abstract sealed
Inheritance
DevicePortal

Properties

UseSSL

Use SSL Connections when making rest calls.

VerifySSLCertificates

Use SSL Certificate Verification when making SSL rest calls.

Methods

ConnectToWiFiNetworkAsync(DeviceInfo, InterfaceInfo, WirelessNetworkInfo, String)

Connects to the specified WiFi Network.

DownloadLogFileAsync(String, DeviceInfo, ApplicationInfo)

Downloads and launches the Log file for the target application on the target device.

EnsureAuthenticationAsync(DeviceInfo)

Makes sure the Authentication Headers and CSRF Tokens are set.

FinalizeUrl(String)

This Utility method finalizes the URL and formats the HTTPS string if needed.

GetAllInstalledAppsAsync(DeviceInfo)
GetAvailableWiFiNetworksAsync(DeviceInfo, InterfaceInfo)

Gets the AvailableWiFiNetworks of the target device.

GetBatteryStateAsync(DeviceInfo)

Gets the BatteryInfo of the target device.

GetDeviceOsInfoAsync(DeviceInfo)

Gets the DeviceOsInfo of the target device.

GetIpConfigInfoAsync(DeviceInfo)

Gets the IpConfigInfo of the target device.

GetMachineNameAsync(DeviceInfo)

Gets the MachineName of the target device.

GetPowerStateAsync(DeviceInfo)

Gets the PowerStateInfo of the target device.

GetWiFiNetworkInterfacesAsync(DeviceInfo)

Gets the NetworkInterfaces of the target device.

InstallAppAsync(String, DeviceInfo, Boolean)

Installs the target application on the target device.

IsAppInstalledAsync(String, DeviceInfo)

Determines if the target application is currently running on the target device.

IsAppRunningAsync(String, DeviceInfo, ApplicationInfo)

Determines if the target application is running on the target device.

LaunchAppAsync(String, DeviceInfo, ApplicationInfo)

Launches the target application on the target device.

OpenWebPortal(DeviceInfo)

Opens the Device Portal for the target device.

RefreshCsrfTokenAsync(DeviceInfo)

Refreshes the CSRF Token in case the device or its portal was restarted.

RestartAsync(DeviceInfo)

Restart the target device.

ShutdownAsync(DeviceInfo)

Shuts down the target device.

StopAppAsync(String, DeviceInfo, ApplicationInfo)

Stops the target application on the target device.

UninstallAppAsync(String, DeviceInfo, ApplicationInfo)

Uninstalls the target application on the target device

Applies to

Produkt Versioner
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0