Reputation: 1
When overriding the Navigation methods like OnNavigatedTo, I get the warning:
Asynchronous method 'OnNavigatedTo' should not return void
The method is defined as:
public async override void OnNavigatedTo(NavigationParameters parameters){}
Shouldn't this return a Task?
Thanks!
Upvotes: 0
Views: 220
Reputation:
No, it does not return a Task. You can see the interface definition here:
Also, I'm not sure what you mean by overriding. You do not override this method, you implement it via the INavigationAware or INavigatedAware interfaces.
Upvotes: 1