Skip to content

Commit 009b4f1

Browse files
authored
Page.DisplayAlert documentation - Task vs Task<bool> (dotnet#28521)
1 parent 7e7ae08 commit 009b4f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Controls/src/Core/Page/Page.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ public Task<string> DisplayActionSheet(string title, string cancel, string destr
305305
return args.Result.Task;
306306
}
307307

308+
/// <returns>A <see cref="Task"/> that completes when the alert is dismissed.</returns>
308309
/// <inheritdoc cref="DisplayAlert(string, string, string, string, FlowDirection)"/>
309310
public Task DisplayAlert(string title, string message, string cancel)
310311
{
@@ -317,6 +318,7 @@ public Task<bool> DisplayAlert(string title, string message, string accept, stri
317318
return DisplayAlert(title, message, accept, cancel, FlowDirection.MatchParent);
318319
}
319320

321+
/// <returns>A <see cref="Task"/> that completes when the alert is dismissed.</returns>
320322
/// <inheritdoc cref="DisplayAlert(string, string, string, string, FlowDirection)"/>
321323
public Task DisplayAlert(string title, string message, string cancel, FlowDirection flowDirection)
322324
{

0 commit comments

Comments
 (0)