/// <summary> /// Check if the device is locked /// </summary> /// <returns>true if device is locked, false otherwise</returns> public bool IsLocked() => AndroidCommandExecutionHelper.IsLocked(this);
/** * This method unlocks a device. */ public void Unlock() => AndroidCommandExecutionHelper.Unlock(this);
public void PushFile(string pathOnDevice, FileInfo file) => AndroidCommandExecutionHelper.PushFile(this, pathOnDevice, file);
/// <summary> /// Open the notifications /// </summary> public void OpenNotifications() => AndroidCommandExecutionHelper.OpenNotifications(this);
public void PushFile(string pathOnDevice, string stringData) => AndroidCommandExecutionHelper.PushFile(this, pathOnDevice, Convert.FromBase64String(Convert.ToBase64String(Encoding.UTF8.GetBytes(stringData))));
public void PushFile(string pathOnDevice, byte[] base64Data) => AndroidCommandExecutionHelper.PushFile(this, pathOnDevice, base64Data);
/// <summary> /// Get test-coverage data /// </summary> /// <param name="intent">a string containing the intent.</param> /// <param name="path">a string containing the path.</param> /// <return>a base64 string containing the data</return> public string EndTestCoverage(string intent, string path) => AndroidCommandExecutionHelper.EndTestCoverage(this, intent, path);
/// <summary> /// Toggles Location Services. /// </summary> public void ToggleLocationServices() => AndroidCommandExecutionHelper.ToggleLocationServices(this);
public void StartActivityWithIntent(string appPackage, string appActivity, string intentAction, string appWaitPackage = "", string appWaitActivity = "", string intentCategory = "", string intentFlags = "", string intentOptionalArgs = "", bool stopApp = true) => AndroidCommandExecutionHelper.StartActivityWithIntent(this, appPackage, appActivity, intentAction, appWaitPackage, appWaitActivity, intentCategory, intentFlags, intentOptionalArgs, stopApp);
public void StartActivity(string appPackage, string appActivity, string appWaitPackage = "", string appWaitActivity = "", bool stopApp = true) => AndroidCommandExecutionHelper.StartActivity(this, appPackage, appActivity, appWaitPackage, appWaitActivity, stopApp);
public void SetSetting(string setting, object value) => AndroidCommandExecutionHelper.SetSetting(this, setting, value);