-
-
Notifications
You must be signed in to change notification settings - Fork 377
Add New API to Force Web Url #3616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,7 +207,7 @@ | |
Task<string> HttpGetStringAsync(string url, CancellationToken token = default); | ||
|
||
/// <summary> | ||
/// Http download the spefic url and return as stream | ||
/// </summary> | ||
/// <param name="url">URL to call Http Get</param> | ||
/// <param name="token">Cancellation Token</param> | ||
|
@@ -305,6 +305,19 @@ | |
/// <param name="FileNameOrFilePath">Extra FileName Info</param> | ||
public void OpenDirectory(string DirectoryPath, string FileNameOrFilePath = null); | ||
|
||
/// <summary> | ||
/// Opens the URL using the browser with the given Uri object, even if the URL is a local file. | ||
/// The browser and mode used is based on what's configured in Flow's default browser settings. | ||
/// </summary> | ||
public void OpenWebUrl(Uri url, bool? inPrivate = null); | ||
|
||
/// <summary> | ||
/// Opens the URL using the browser with the given string, even if the URL is a local file. | ||
/// The browser and mode used is based on what's configured in Flow's default browser settings. | ||
/// Non-C# plugins should use this method. | ||
/// </summary> | ||
public void OpenWebUrl(string url, bool? inPrivate = null); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the same as OpenUrl with string uri parameter, need to differentiate these two. can you mention something like 'Opens the URL using the browser with the given string, even if the URL is a local file, by setting forceBrowser to true on OpenUrl method.' There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I have already described this in function summaries.
Could you please explain your meaning further? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And I have no idea about why we need to add |
||
|
||
/// <summary> | ||
/// Opens the URL with the given Uri object. | ||
/// The browser and mode used is based on what's configured in Flow's default browser settings. | ||
|
@@ -348,7 +361,7 @@ | |
|
||
/// <summary> | ||
/// Reloads the query. | ||
/// When current results are from context menu or history, it will go back to query results before requerying. | ||
/// </summary> | ||
/// <param name="reselect">Choose the first result after reload if true; keep the last selected result if false. Default is true.</param> | ||
public void ReQuery(bool reselect = true); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need these two in the API, they seem to be the same as the two below
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see more information in description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update OpenUri's method and it's summary with the new parameter
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think this is a good idea. I prefer to add a new API function to ensure compatibility.