This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SensorManager.GravityMercury //3.7 | |
SensorManager.GravityVenus //8.87 | |
SensorManager.GravityEarth //9.81 | |
SensorManager.GravityMars //3.71 | |
SensorManager.GravityJupiter //23.12 | |
SensorManager.GravityUranus //8.69 | |
SensorManager.GravityNeptune //11 | |
/* SensorManager.GravityPluto //0.6 */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SensorManager.GravityDeathStarI //3.53036143E-07f, in Empire units |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SensorManager.GravityTheIsland //4.815162 - 4 8 15 16 .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public InputMethodManager GetInputMethodManager() => (InputMethodManager)CrossCurrentActivity.Current.Activity.GetSystemService(Context.InputMethodService); | |
public void Dismiss() | |
{ | |
var activity = CrossCurrentActivity.Current.Activity; | |
var token = activity.CurrentFocus?.WindowToken; | |
GetInputMethodManager().HideSoftInputFromWindow(token, HideSoftInputFlags.None); | |
activity.Window.DecorView.ClearFocus(); | |
IsDisplayed = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error occurred while restoring NuGet packages: The operation failed as details for project Uno.UI.BindingHelper.Android could not be loaded. | |
1>------ Build started: Project: Uno.MonoAnalyzers, Configuration: Debug Any CPU ------ | |
2>------ Build started: Project: Uno.UI.Tasks, Configuration: Debug Any CPU ------ | |
3>------ Build started: Project: T4Generator, Configuration: Debug Any CPU ------ | |
3> T4Generator -> C:\Dev\Uno\src\T4Generator\bin\Debug\T4Generator.exe | |
1>Uno.MonoAnalyzers -> C:\Dev\Uno\src\Uno.MonoAnalyzers\bin\Debug\net46\Uno.MonoAnalyzers.dll | |
4>------ Build started: Project: Uno.Xaml (Uno.Xaml\Uno.Xaml), Configuration: Debug Any CPU ------ | |
5>------ Build started: Project: Uno.Foundation, Configuration: Debug Any CPU ------ | |
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.Messaging.targets(41,3): warning VSX1000: No enough information has been provided to MSBuild in order to establish a connection to a Remote Server. The project 'Uno.Foundation' will conti |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Severity Code Description Project File Line Suppression State | |
Error CS0246 The type or namespace name 'CommandBar' could not be found (are you missing a using directive or an assembly reference?) Uno.UI.Toolkit(MonoAndroid80) C:\Dev\Uno\src\Uno.UI.Toolkit\CommandBarExtensions.cs 102 Active | |
Error CS0246 The type or namespace name 'DependencyProperty' could not be found (are you missing a using directive or an assembly reference?) Uno.UI.Toolkit(MonoAndroid80) C:\Dev\Uno\src\Uno.UI.Toolkit\CommandBarExtensions.cs 19 Active | |
Error CS0246 The type or namespace name 'CommandBar' could not be found (are you missing a using directive or an assembly reference?) Uno.UI.Toolkit(MonoAndroid80) C:\Dev\Uno\src\Uno.UI.Toolkit\CommandBarExtensions.cs 27 Active | |
Error CS0246 The type or namespace name 'CommandBar' could not be found (are you missing a using directive or an assembly reference?) Uno.UI.Toolkit(MonoAndroid80) C:\Dev\Uno\src\Uno.UI.Toolkit\CommandBarExtensions.cs 32 Active | |
Error CS0246 The type or namespace name ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Image> | |
<Image.Source> | |
<OnPlatform x:TypeArguments="FileImageSource"> | |
<On Platform="iOS, Android" Value="image.png" /> | |
<On Platform="UWP" Value="Assets/image.png" /> | |
</OnPlatform> | |
</Image.Source> | |
</Image> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Application.Current.On<Windows>().SetImageSearchDirectory("Assets"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ContentProperty(nameof(Path))] | |
public class FileImageExtension : IMarkupExtension<FileImageSource> | |
{ | |
public string Path { get; set; } | |
public FileImageSource ProvideValue(IServiceProvider serviceProvider) => Convert(Path); | |
public static FileImageSource Convert(string path) | |
{ | |
if (path == null) throw new InvalidOperationException($"Cannot convert null to {typeof(ImageSource)}"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- add XML namespace declaration to page root --> | |
<ContentPage ... | |
xmlns:xaml="clr-namespace:YourApp.ExtensionNamespace;assembly=YourApp"> | |
<Image Source="{xaml:FileImage image.png}" /> |