Class PWAAdapter
Represents an adapter for the PWA domain to simplify the command interface.
public class PWAAdapter- Inheritance
- 
      
      PWAAdapter
- Inherited Members
Constructors
PWAAdapter(IDevToolsSession)
Initializes a new instance of the PWAAdapter class.
public PWAAdapter(IDevToolsSession session)Parameters
- sessionIDevToolsSession
- The IDevToolsSession to be used with this adapter. 
Exceptions
- ArgumentNullException
- If - sessionis null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }Property Value
Methods
ChangeAppUserSettings(ChangeAppUserSettingsCommandSettings, CancellationToken, int?, bool)
changeAppUserSettings
public Task<ChangeAppUserSettingsCommandResponse?> ChangeAppUserSettings(ChangeAppUserSettingsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandChangeAppUserSettingsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetOsAppState(GetOsAppStateCommandSettings, CancellationToken, int?, bool)
getOsAppState
public Task<GetOsAppStateCommandResponse> GetOsAppState(GetOsAppStateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetOsAppStateCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Install(InstallCommandSettings, CancellationToken, int?, bool)
install
public Task<InstallCommandResponse?> Install(InstallCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandInstallCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Launch(LaunchCommandSettings, CancellationToken, int?, bool)
launch
public Task<LaunchCommandResponse> Launch(LaunchCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandLaunchCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
LaunchFilesInApp(LaunchFilesInAppCommandSettings, CancellationToken, int?, bool)
launchFilesInApp
public Task<LaunchFilesInAppCommandResponse> LaunchFilesInApp(LaunchFilesInAppCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandLaunchFilesInAppCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
OpenCurrentPageInApp(OpenCurrentPageInAppCommandSettings, CancellationToken, int?, bool)
openCurrentPageInApp
public Task<OpenCurrentPageInAppCommandResponse?> OpenCurrentPageInApp(OpenCurrentPageInAppCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandOpenCurrentPageInAppCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Uninstall(UninstallCommandSettings, CancellationToken, int?, bool)
uninstall
public Task<UninstallCommandResponse?> Uninstall(UninstallCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandUninstallCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool