diff --git a/Xamarin.Essentials/AssemblyInfo/AssemblyInfo.shared.cs b/Xamarin.Essentials/AssemblyInfo/AssemblyInfo.shared.cs index 3f1a83262..2a81a37a7 100644 --- a/Xamarin.Essentials/AssemblyInfo/AssemblyInfo.shared.cs +++ b/Xamarin.Essentials/AssemblyInfo/AssemblyInfo.shared.cs @@ -1,7 +1,7 @@ using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("XamarinEssentialsTests")] -[assembly: InternalsVisibleTo("XamarinEssentialsDeviceTestsiOS.Android")] +[assembly: InternalsVisibleTo("XamarinEssentialsDeviceTestsAndroid")] [assembly: InternalsVisibleTo("XamarinEssentialsDeviceTestsUWP")] [assembly: InternalsVisibleTo("XamarinEssentialsDeviceTestsShared")] [assembly: InternalsVisibleTo("XamarinEssentialsDeviceTestsiOS")] diff --git a/Xamarin.Essentials/Xamarin.Essentials.csproj b/Xamarin.Essentials/Xamarin.Essentials.csproj index 80270fad5..0b1153ca3 100644 --- a/Xamarin.Essentials/Xamarin.Essentials.csproj +++ b/Xamarin.Essentials/Xamarin.Essentials.csproj @@ -54,7 +54,7 @@ - + diff --git a/Xamarin.Essentials/mdoc.targets b/Xamarin.Essentials/mdoc.targets index 9e7f9a816..513ea0786 100644 --- a/Xamarin.Essentials/mdoc.targets +++ b/Xamarin.Essentials/mdoc.targets @@ -92,7 +92,7 @@ - + @@ -110,6 +110,7 @@ --> + <_FormatDocs DocsRoot="$(MDocDocumentationDirectory)" /> <_VerifyAllDocsAreComplete DocsRoot="$(MDocDocumentationDirectory)" /> @@ -132,6 +133,32 @@ + x.Descendants().Any(d => d.Value == "To be added.")); + var incomplete = xdoc.Descendants("Docs").Where(x => x.Descendants().Any(d => d.Value == "To be added.")); foreach (var node in incomplete) { - var typename = xdoc.Root.Attribute("FullName").Value; - var member = node.Attribute("MemberName").Value; - var memberType = node.Element("MemberType").Value.ToLower(); - Log.LogWarning("Missing docs for {2} '{0}.{1}'.", typename, member, memberType); + if (node.Parent.Name == "Type" && xdoc.Root.Name == "Type") { + var typename = xdoc.Root.Attribute("FullName").Value; + Log.LogWarning("Missing docs for {0}.", typename); + } else if (node.Parent.Name == "Member" && xdoc.Root.Name == "Type") { + var typename = xdoc.Root.Attribute("FullName").Value; + var member = node.Parent.Attribute("MemberName").Value; + var memberType = node.Parent.Element("MemberType").Value.ToLower(); + Log.LogWarning("Missing docs for {2} '{0}.{1}'.", typename, member, memberType); + } else { + Log.LogWarning("Missing docs in {0}.", file); + } } } ]]> diff --git a/docs/en/FrameworksIndex/xamarin-essentials-android.xml b/docs/en/FrameworksIndex/xamarin-essentials-android.xml index 0b38c34c2..18955fcf6 100644 --- a/docs/en/FrameworksIndex/xamarin-essentials-android.xml +++ b/docs/en/FrameworksIndex/xamarin-essentials-android.xml @@ -15,6 +15,7 @@ + @@ -40,6 +41,7 @@ + @@ -49,6 +51,7 @@ + @@ -99,6 +102,7 @@ + @@ -115,6 +119,7 @@ + @@ -185,6 +190,11 @@ + + + + + @@ -222,6 +232,7 @@ + @@ -240,6 +251,7 @@ + @@ -265,6 +277,7 @@ + @@ -294,6 +307,7 @@ + @@ -301,10 +315,10 @@ - + @@ -346,6 +360,7 @@ + @@ -357,6 +372,7 @@ + @@ -429,6 +445,7 @@ + diff --git a/docs/en/FrameworksIndex/xamarin-essentials-ios.xml b/docs/en/FrameworksIndex/xamarin-essentials-ios.xml index e1d6b70c2..1aafa14df 100644 --- a/docs/en/FrameworksIndex/xamarin-essentials-ios.xml +++ b/docs/en/FrameworksIndex/xamarin-essentials-ios.xml @@ -15,6 +15,7 @@ + @@ -40,6 +41,7 @@ + @@ -49,6 +51,7 @@ + @@ -100,6 +103,7 @@ + @@ -116,6 +120,7 @@ + @@ -186,6 +191,11 @@ + + + + + @@ -223,6 +233,7 @@ + @@ -241,6 +252,7 @@ + @@ -266,6 +278,7 @@ + @@ -295,6 +308,7 @@ + @@ -302,10 +316,10 @@ - + @@ -347,6 +361,7 @@ + @@ -358,6 +373,7 @@ + @@ -426,6 +442,7 @@ + diff --git a/docs/en/FrameworksIndex/xamarin-essentials-uwp.xml b/docs/en/FrameworksIndex/xamarin-essentials-uwp.xml index 6ed61bea9..5e3363ab7 100644 --- a/docs/en/FrameworksIndex/xamarin-essentials-uwp.xml +++ b/docs/en/FrameworksIndex/xamarin-essentials-uwp.xml @@ -15,6 +15,7 @@ + @@ -40,6 +41,7 @@ + @@ -49,6 +51,7 @@ + @@ -99,6 +102,7 @@ + @@ -115,6 +119,7 @@ + @@ -185,6 +190,11 @@ + + + + + @@ -222,6 +232,7 @@ + @@ -240,6 +251,7 @@ + @@ -265,6 +277,7 @@ + @@ -294,6 +307,7 @@ + @@ -301,10 +315,10 @@ - + @@ -346,6 +360,7 @@ + @@ -357,6 +372,7 @@ + @@ -425,6 +441,7 @@ + diff --git a/docs/en/FrameworksIndex/xamarin-essentials.xml b/docs/en/FrameworksIndex/xamarin-essentials.xml index 886c691de..a8b3860ee 100644 --- a/docs/en/FrameworksIndex/xamarin-essentials.xml +++ b/docs/en/FrameworksIndex/xamarin-essentials.xml @@ -15,6 +15,7 @@ + @@ -40,6 +41,7 @@ + @@ -49,6 +51,7 @@ + @@ -99,6 +102,7 @@ + @@ -115,6 +119,7 @@ + @@ -185,6 +190,11 @@ + + + + + @@ -222,6 +232,7 @@ + @@ -240,6 +251,7 @@ + @@ -265,6 +277,7 @@ + @@ -294,6 +307,7 @@ + @@ -301,10 +315,10 @@ - + @@ -346,6 +360,7 @@ + @@ -357,6 +372,7 @@ + @@ -425,6 +441,7 @@ + diff --git a/docs/en/Xamarin.Essentials/AccelerometerData.xml b/docs/en/Xamarin.Essentials/AccelerometerData.xml index 2a19473a2..7ccf5b1ab 100644 --- a/docs/en/Xamarin.Essentials/AccelerometerData.xml +++ b/docs/en/Xamarin.Essentials/AccelerometerData.xml @@ -90,7 +90,9 @@ Other AccelerometerData to compare with. Compares the underlying Vector3 instances. True if they are equal, otherwise false. - + + + @@ -166,5 +168,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/BarometerData.xml b/docs/en/Xamarin.Essentials/BarometerData.xml index bec0315f1..688055145 100644 --- a/docs/en/Xamarin.Essentials/BarometerData.xml +++ b/docs/en/Xamarin.Essentials/BarometerData.xml @@ -172,5 +172,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/BatteryChangedEventArgs.xml b/docs/en/Xamarin.Essentials/BatteryChangedEventArgs.xml index a6265e5ed..3daa85de1 100644 --- a/docs/en/Xamarin.Essentials/BatteryChangedEventArgs.xml +++ b/docs/en/Xamarin.Essentials/BatteryChangedEventArgs.xml @@ -75,5 +75,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/CompassData.xml b/docs/en/Xamarin.Essentials/CompassData.xml index 2b03c4ef1..015b42869 100644 --- a/docs/en/Xamarin.Essentials/CompassData.xml +++ b/docs/en/Xamarin.Essentials/CompassData.xml @@ -137,7 +137,7 @@ - Left to compare + Left to compare Right to compare Equality operator for equals If equal @@ -172,5 +172,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/ConnectivityChangedEventArgs.xml b/docs/en/Xamarin.Essentials/ConnectivityChangedEventArgs.xml index 089f9629b..3c28a0055 100644 --- a/docs/en/Xamarin.Essentials/ConnectivityChangedEventArgs.xml +++ b/docs/en/Xamarin.Essentials/ConnectivityChangedEventArgs.xml @@ -57,5 +57,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/FeatureNotEnabledException.xml b/docs/en/Xamarin.Essentials/FeatureNotEnabledException.xml new file mode 100644 index 000000000..5f892b130 --- /dev/null +++ b/docs/en/Xamarin.Essentials/FeatureNotEnabledException.xml @@ -0,0 +1,72 @@ + + + + + + Xamarin.Essentials + 1.0.0.0 + + + System.InvalidOperationException + + + + To be added. + To be added. + + + + + + + Constructor + + Xamarin.Essentials + 1.0.0.0 + + + + To be added. + To be added. + + + + + + + Constructor + + Xamarin.Essentials + 1.0.0.0 + + + + + + To be added. + To be added. + To be added. + + + + + + + Constructor + + Xamarin.Essentials + 1.0.0.0 + + + + + + + To be added. + To be added. + To be added. + To be added. + + + + diff --git a/docs/en/Xamarin.Essentials/GeolocationRequest.xml b/docs/en/Xamarin.Essentials/GeolocationRequest.xml index 6a02a3672..ac42e15c6 100644 --- a/docs/en/Xamarin.Essentials/GeolocationRequest.xml +++ b/docs/en/Xamarin.Essentials/GeolocationRequest.xml @@ -104,5 +104,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/GyroscopeData.xml b/docs/en/Xamarin.Essentials/GyroscopeData.xml index 8c914da36..973870075 100644 --- a/docs/en/Xamarin.Essentials/GyroscopeData.xml +++ b/docs/en/Xamarin.Essentials/GyroscopeData.xml @@ -90,7 +90,9 @@ Other GyroscopeData to compare with. Compares the underlying Vector3 instances. True if they match, otherwise false. - + + + @@ -166,5 +168,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/Location.xml b/docs/en/Xamarin.Essentials/Location.xml index 300a14467..f5df9f533 100644 --- a/docs/en/Xamarin.Essentials/Location.xml +++ b/docs/en/Xamarin.Essentials/Location.xml @@ -138,26 +138,6 @@ Returns 0 or no value if not available. - - - - - Property - - Xamarin.Essentials - 1.0.0.0 - - - System.Nullable<System.Double> - - - Degrees relative to true north. - 0..360 in degrees relative to true north. null if unavailable. - - - - - @@ -278,6 +258,26 @@ + + + + + Property + + Xamarin.Essentials + 1.0.0.0 + + + System.Nullable<System.Double> + + + Degrees relative to true north. + 0..360 in degrees relative to true north. null if unavailable. + + + + + @@ -408,5 +408,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/MagnetometerData.xml b/docs/en/Xamarin.Essentials/MagnetometerData.xml index 24cf982a3..53e9d44a9 100644 --- a/docs/en/Xamarin.Essentials/MagnetometerData.xml +++ b/docs/en/Xamarin.Essentials/MagnetometerData.xml @@ -72,7 +72,9 @@ Other MagnetometerData to compare with. Compares the underlying Vector3 instances. True if they match, otherwise false. - + + + @@ -166,5 +168,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/MapDirectionsMode.xml b/docs/en/Xamarin.Essentials/MapDirectionsMode.xml index 76a754eda..2269f2804 100644 --- a/docs/en/Xamarin.Essentials/MapDirectionsMode.xml +++ b/docs/en/Xamarin.Essentials/MapDirectionsMode.xml @@ -16,10 +16,10 @@ - - - - + + + + Field Xamarin.Essentials @@ -28,14 +28,14 @@ Xamarin.Essentials.MapDirectionsMode - 0 + 1 - No directions mode for map. + Bicycle route mode. - + Field @@ -45,15 +45,15 @@ Xamarin.Essentials.MapDirectionsMode - 1 + 2 The default directions mode on the platform. - - - - + + + + Field Xamarin.Essentials @@ -62,15 +62,15 @@ Xamarin.Essentials.MapDirectionsMode - 2 + 3 - Bicycle route mode. + Car route mode. - - - - + + + + Field Xamarin.Essentials @@ -79,9 +79,9 @@ Xamarin.Essentials.MapDirectionsMode - 3 + 0 - Car route mode. + No directions mode for map. diff --git a/docs/en/Xamarin.Essentials/Maps.xml b/docs/en/Xamarin.Essentials/Maps.xml index f659db94d..59f6eeb03 100644 --- a/docs/en/Xamarin.Essentials/Maps.xml +++ b/docs/en/Xamarin.Essentials/Maps.xml @@ -64,9 +64,9 @@ - - - + + + Method Xamarin.Essentials @@ -76,23 +76,23 @@ System.Threading.Tasks.Task - - + + - Location to open maps to. - Launch options to use. - Open the installed application to a specific location with launch options. + Latitude to open to. + Longitude to open to. + Open the installed application to a specific location. Task to be completed. - + - - - + + + Method Xamarin.Essentials @@ -102,13 +102,13 @@ System.Threading.Tasks.Task - + - Placemark to open maps to. + Location to open maps to. Launch options to use. - Open the installed application to a specific placemark with launch options.. + Open the installed application to a specific location with launch options. Task to be completed. @@ -116,9 +116,9 @@ - - - + + + Method Xamarin.Essentials @@ -128,16 +128,16 @@ System.Threading.Tasks.Task - - + + - Latitude to open to. - Longitude to open to. - Open the installed application to a specific location. + Placemark to open maps to. + Launch options to use. + Open the installed application to a specific placemark with launch options.. Task to be completed. - + diff --git a/docs/en/Xamarin.Essentials/OrientationSensorData.xml b/docs/en/Xamarin.Essentials/OrientationSensorData.xml index 7da3672b5..056bde1f7 100644 --- a/docs/en/Xamarin.Essentials/OrientationSensorData.xml +++ b/docs/en/Xamarin.Essentials/OrientationSensorData.xml @@ -72,7 +72,9 @@ Other OrientationSensorData to compare with. Compares the underlying Quaternion instances. True if they match, otherwise false. - + + + @@ -168,5 +170,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/Placemark.xml b/docs/en/Xamarin.Essentials/Placemark.xml index e280c9c7d..58b52bfc3 100644 --- a/docs/en/Xamarin.Essentials/Placemark.xml +++ b/docs/en/Xamarin.Essentials/Placemark.xml @@ -274,5 +274,24 @@ + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/ScreenMetrics.xml b/docs/en/Xamarin.Essentials/ScreenMetrics.xml index 4c7787c25..0bf967535 100644 --- a/docs/en/Xamarin.Essentials/ScreenMetrics.xml +++ b/docs/en/Xamarin.Essentials/ScreenMetrics.xml @@ -228,6 +228,25 @@ This represents the degrees that the device has been rotated. For example, if this is a phone (which is designed for portrait) that has been rotated to landscape with the main buttoms to the right, then the device has been rotated to the left by 90 degrees. + + + + + Method + + Xamarin.Essentials + 1.0.0.0 + + + System.String + + + + To be added. + To be added. + To be added. + + diff --git a/docs/en/Xamarin.Essentials/SmsMessage.xml b/docs/en/Xamarin.Essentials/SmsMessage.xml index a621fd754..0d305e97c 100644 --- a/docs/en/Xamarin.Essentials/SmsMessage.xml +++ b/docs/en/Xamarin.Essentials/SmsMessage.xml @@ -26,8 +26,8 @@ - Content of the message - Recipients to receive the message. + To be added. + To be added. @@ -47,7 +47,9 @@ Content of the message Recipients to receive the message. Creates a new instance of SmsMessage - + + + diff --git a/docs/en/Xamarin.Essentials/TextToSpeech.xml b/docs/en/Xamarin.Essentials/TextToSpeech.xml index ded4d3925..de17802ee 100644 --- a/docs/en/Xamarin.Essentials/TextToSpeech.xml +++ b/docs/en/Xamarin.Essentials/TextToSpeech.xml @@ -67,14 +67,6 @@ Xamarin.Essentials 1.0.0.0 - - - System.Diagnostics.DebuggerStepThrough - - - System.Runtime.CompilerServices.AsyncStateMachine(typeof(Xamarin.Essentials.TextToSpeech/<SpeakAsync>d__9)) - - System.Threading.Tasks.Task diff --git a/docs/en/index.xml b/docs/en/index.xml index 0d6731062..77e54d8b4 100644 --- a/docs/en/index.xml +++ b/docs/en/index.xml @@ -20,10 +20,7 @@ System.Reflection.AssemblyFileVersion("1.0.0.0") - - System.Reflection.AssemblyInformationalVersion("1.0.0") - - + System.Reflection.AssemblyProduct("Xamarin.Essentials (netstandard2.0)") @@ -50,9 +47,39 @@ System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows=true) - + System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName="") + + System.Reflection.AssemblyInformationalVersion("1.0.0+8db259fd337f910db5b9158f8ab6b5cdbb783499") + + + System.Runtime.CompilerServices.InternalsVisibleTo("XamarinEssentialsDeviceTestsShared") + + + Android.LinkerSafe + + + System.Reflection.AssemblyProduct("Xamarin.Essentials (MonoAndroid81)") + + + System.Runtime.Versioning.TargetFramework("MonoAndroid,Version=v8.1", FrameworkDisplayName="Xamarin.Android v8.1 Support") + + + Foundation.LinkerSafe + + + System.Reflection.AssemblyProduct("Xamarin.Essentials (Xamarin.iOS10)") + + + System.Runtime.Versioning.TargetFramework("Xamarin.iOS,Version=v1.0", FrameworkDisplayName="Xamarin.iOS") + + + System.Reflection.AssemblyProduct("Xamarin.Essentials (uap10.0.16299)") + + + System.Runtime.Versioning.TargetFramework(".NETCore,Version=v5.0", FrameworkDisplayName=".NET for Windows Universal") + @@ -92,6 +119,7 @@ + @@ -141,4 +169,153 @@ + Untitled + + + + + + + + + + ExtensionMethod + + System.Double + + + + + + + + + Start location to calculate from. + End latitude to calculate from. + End longitude to calculate from. + Units to use. + Extension to calculate distance from location to another location. + + + + + + + + + + + + + ExtensionMethod + + System.Double + + + + + + + + Start location to calculate from. + End location to calculate from. + Units to use during calculation. + Extension to calculate distance from location to another location. + + + + + + + + + + + + + ExtensionMethod + + System.Threading.Tasks.Task + + + + + + Location to open to. + Open maps to this location. + + + + + + + + + + + + + ExtensionMethod + + System.Threading.Tasks.Task + + + + + + + Location to open to. + Options to use. + Open maps to this location. + + + + + + + + + + + + + ExtensionMethod + + System.Threading.Tasks.Task + + + + + + To be added. + To be added. + + + + + + + + + + + + + ExtensionMethod + + System.Threading.Tasks.Task + + + + + + + To be added. + To be added. + To be added. + + + + +