public async Task<double> SetStatusBar(Color? color = null, double opacity = 1)
{
// This is broken into two functions to work around an OS bug. On some builds of windows
// the StatusBar object cant be found at all, so if we try to make one on the stack before
// we check if it exits.
if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar"))
{
return await SetStatusBar_Internal(color, opacity);
}
return 0;
}