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
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
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
command
ChangeAppUserSettingsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetOsAppState(GetOsAppStateCommandSettings, CancellationToken, int?, bool)
getOsAppState
public Task<GetOsAppStateCommandResponse> GetOsAppState(GetOsAppStateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetOsAppStateCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Install(InstallCommandSettings, CancellationToken, int?, bool)
install
public Task<InstallCommandResponse> Install(InstallCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
InstallCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Launch(LaunchCommandSettings, CancellationToken, int?, bool)
launch
public Task<LaunchCommandResponse> Launch(LaunchCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
LaunchCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
LaunchFilesInApp(LaunchFilesInAppCommandSettings, CancellationToken, int?, bool)
launchFilesInApp
public Task<LaunchFilesInAppCommandResponse> LaunchFilesInApp(LaunchFilesInAppCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
LaunchFilesInAppCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
OpenCurrentPageInApp(OpenCurrentPageInAppCommandSettings, CancellationToken, int?, bool)
openCurrentPageInApp
public Task<OpenCurrentPageInAppCommandResponse> OpenCurrentPageInApp(OpenCurrentPageInAppCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
OpenCurrentPageInAppCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Uninstall(UninstallCommandSettings, CancellationToken, int?, bool)
uninstall
public Task<UninstallCommandResponse> Uninstall(UninstallCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
UninstallCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool