summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorSamantha Houts <samhouts@users.noreply.github.com>2017-04-07 00:47:33 -0700
committerStephane Delcroix <stephane@delcroix.org>2017-04-07 09:47:33 +0200
commit5f2796e160f99bad31c1b06a2d1f328b5ed02ba3 (patch)
tree1be94941400ed554767836b588106b3f105cb21b /Xamarin.Forms.Platform.Android
parent45a6a80b4c2d9be199f7c61a89bbaa3e5f829564 (diff)
downloadxamarin-forms-5f2796e160f99bad31c1b06a2d1f328b5ed02ba3.tar.gz
xamarin-forms-5f2796e160f99bad31c1b06a2d1f328b5ed02ba3.tar.bz2
xamarin-forms-5f2796e160f99bad31c1b06a2d1f328b5ed02ba3.zip
[Internal] Normalize Obsolete attributes (#860)
* [All] Normalize Obsolete attributes. Make sure we include the version in which the member was deprecated and consistent instructions for working around the deprecation, if applicable. * Update docs
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/AndroidActivity.cs2
-rw-r--r--Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs2
-rw-r--r--Xamarin.Forms.Platform.Android/IVisualElementRenderer.cs2
-rw-r--r--Xamarin.Forms.Platform.Android/RendererFactory.cs2
-rw-r--r--Xamarin.Forms.Platform.Android/Renderers/ActionSheetRenderer.cs2
-rw-r--r--Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs4
6 files changed, 7 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.Android/AndroidActivity.cs b/Xamarin.Forms.Platform.Android/AndroidActivity.cs
index d675926f..2686c0d3 100644
--- a/Xamarin.Forms.Platform.Android/AndroidActivity.cs
+++ b/Xamarin.Forms.Platform.Android/AndroidActivity.cs
@@ -2,7 +2,7 @@ using System;
namespace Xamarin.Forms.Platform.Android
{
- [Obsolete("AndroidActivity is obsolete as of version 1.3, please use FormsApplicationActivity")]
+ [Obsolete("AndroidActivity is obsolete as of version 1.3.0. Please use FormsApplicationActivity instead.")]
public class AndroidActivity : FormsApplicationActivity
{
}
diff --git a/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs b/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs
index 6e508cc4..2631b90e 100644
--- a/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs
+++ b/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs
@@ -91,7 +91,7 @@ namespace Xamarin.Forms.Platform.Android
return base.OnPrepareOptionsMenu(menu);
}
- [Obsolete("Please use protected LoadApplication (Application app) instead")]
+ [Obsolete("SetPage is obsolete as of version 1.3.0. Please use protected LoadApplication (Application app) instead.")]
public void SetPage(Page page)
{
var application = new DefaultApplication { MainPage = page };
diff --git a/Xamarin.Forms.Platform.Android/IVisualElementRenderer.cs b/Xamarin.Forms.Platform.Android/IVisualElementRenderer.cs
index 71817db2..86f46c52 100644
--- a/Xamarin.Forms.Platform.Android/IVisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/IVisualElementRenderer.cs
@@ -11,7 +11,7 @@ namespace Xamarin.Forms.Platform.Android
VisualElementTracker Tracker { get; }
- [Obsolete("Use View instead")]
+ [Obsolete("ViewGroup is obsolete as of version 2.3.5. Please use View instead.")]
ViewGroup ViewGroup { get; }
AView View { get; }
diff --git a/Xamarin.Forms.Platform.Android/RendererFactory.cs b/Xamarin.Forms.Platform.Android/RendererFactory.cs
index 7d0b03b3..8e8a759f 100644
--- a/Xamarin.Forms.Platform.Android/RendererFactory.cs
+++ b/Xamarin.Forms.Platform.Android/RendererFactory.cs
@@ -4,7 +4,7 @@ namespace Xamarin.Forms.Platform.Android
{
public static class RendererFactory
{
- [Obsolete("Use Platform.CreateRenderer")]
+ [Obsolete("GetRenderer is obsolete as of version 2.0.1. Please use Platform.CreateRenderer instead.")]
public static IVisualElementRenderer GetRenderer(VisualElement view)
{
return Platform.CreateRenderer(view);
diff --git a/Xamarin.Forms.Platform.Android/Renderers/ActionSheetRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/ActionSheetRenderer.cs
index 8c937f4c..693e2493 100644
--- a/Xamarin.Forms.Platform.Android/Renderers/ActionSheetRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/Renderers/ActionSheetRenderer.cs
@@ -10,7 +10,7 @@ using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Platform.Android
{
- [Obsolete("ActionSheet now uses default implementation.")]
+ [Obsolete("ActionSheetRenderer is obsolete as of version 1.3.2. ActionSheet now uses default implementation.")]
public class ActionSheetRenderer : Dialog, AView.IOnClickListener
{
readonly ActionSheetArguments _arguments;
diff --git a/Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs
index 9e49a904..17c3721e 100644
--- a/Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs
@@ -12,7 +12,7 @@ namespace Xamarin.Forms.Platform.Android
bool _ignoreSourceChanges;
FormsWebChromeClient _webChromeClient;
- IWebViewController ElementController => Element;
+ IWebViewController ElementController => Element;
public WebViewRenderer()
{
@@ -186,7 +186,7 @@ namespace Xamarin.Forms.Platform.Android
base.OnPageFinished(view, url);
}
- [Obsolete("This method was deprecated in API level 23.")]
+ [Obsolete("OnReceivedError is obsolete as of version 2.3.0. This method was deprecated in API level 23.")]
public override void OnReceivedError(AWebView view, ClientError errorCode, string description, string failingUrl)
{
_navigationResult = WebNavigationResult.Failure;