Update obsolete messages for 2.5

This commit is contained in:
Samantha Houts 2017-10-20 13:02:16 -07:00
Родитель e84fe4d649
Коммит 748c781b96
48 изменённых файлов: 51 добавлений и 51 удалений

Просмотреть файл

@ -12,7 +12,7 @@ namespace Xamarin
{
public static bool IsInitialized { get; private set; }
[Obsolete("Context is obsolete as of version 3.0. Please use a local context instead.")]
[Obsolete("Context is obsolete as of version 2.5. Please use a local context instead.")]
public static Context Context { get; private set; }
public static void Init(Activity activity, Bundle bundle)

Просмотреть файл

@ -33,7 +33,7 @@ namespace Xamarin.Forms.Maps.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use MapRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use MapRenderer(Context) instead.")]
public MapRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -17,7 +17,7 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use CarouselPageRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use CarouselPageRenderer(Context) instead.")]
public CarouselPageRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -12,7 +12,7 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use FrameRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use FrameRenderer(Context) instead.")]
public FrameRenderer()
{

Просмотреть файл

@ -31,7 +31,7 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
{
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use MasterDetailPageRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use MasterDetailPageRenderer(Context) instead.")]
public MasterDetailPageRenderer() : base(Forms.Context)
{
}

Просмотреть файл

@ -54,7 +54,7 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
Device.Info.PropertyChanged += DeviceInfoPropertyChanged;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use NavigationPageRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use NavigationPageRenderer(Context) instead.")]
public NavigationPageRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -22,7 +22,7 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use PickerRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use PickerRenderer(Context) instead.")]
public PickerRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -14,7 +14,7 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use SwitchRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use SwitchRenderer(Context) instead.")]
public SwitchRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -31,7 +31,7 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use TabbedPageRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use TabbedPageRenderer(Context) instead.")]
public TabbedPageRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -9,7 +9,7 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
{
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ViewRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ViewRenderer(Context) instead.")]
protected ViewRenderer()
{
}

Просмотреть файл

@ -15,7 +15,7 @@ namespace Xamarin.Forms.Platform.Android
return new AColor((byte)(byte.MaxValue * self.R), (byte)(byte.MaxValue * self.G), (byte)(byte.MaxValue * self.B), (byte)(byte.MaxValue * self.A));
}
[Obsolete("ToAndroid(this Color, int) is obsolete as of version 3.0. Please use ToAndroid(this Color, int, Context) instead.")]
[Obsolete("ToAndroid(this Color, int) is obsolete as of version 2.5. Please use ToAndroid(this Color, int, Context) instead.")]
public static AColor ToAndroid(this Color self, int defaultColorResourceId)
{
if (self == Color.Default)

Просмотреть файл

@ -43,7 +43,7 @@ namespace Xamarin.Forms.Platform.Android.FastRenderers
Initialize();
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ButtonRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ButtonRenderer(Context) instead.")]
public ButtonRenderer() : base(Forms.Context)
{
_automationPropertiesProvider = new AutomationPropertiesProvider(this);

Просмотреть файл

@ -34,7 +34,7 @@ namespace Xamarin.Forms.Platform.Android.FastRenderers
_effectControlProvider = new EffectControlProvider(this);
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use FrameRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use FrameRenderer(Context) instead.")]
public FrameRenderer() : base(Forms.Context)
{
_gestureManager = new GestureManager(this);

Просмотреть файл

@ -163,7 +163,7 @@ namespace Xamarin.Forms.Platform.Android.FastRenderers
{
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ImageRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ImageRenderer(Context) instead.")]
public ImageRenderer() : base(Forms.Context)
{
}

Просмотреть файл

@ -34,7 +34,7 @@ namespace Xamarin.Forms.Platform.Android.FastRenderers
_visualElementRenderer = new VisualElementRenderer(this);
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use LabelRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use LabelRenderer(Context) instead.")]
public LabelRenderer(): base(Forms.Context)
{
_labelTextColorDefault = TextColors;

Просмотреть файл

@ -29,7 +29,7 @@ namespace Xamarin.Forms
static bool? s_isLollipopOrNewer;
[Obsolete("Context is obsolete as of version 3.0. Please use a local context instead.")]
[Obsolete("Context is obsolete as of version 2.5. Please use a local context instead.")]
public static Context Context { get; internal set; }
// One per process; does not change, suitable for loading resources (e.g., ResourceProvider)
@ -65,7 +65,7 @@ namespace Xamarin.Forms
/// Sets title bar visibility programmatically. Must be called after Xamarin.Forms.Forms.Init() method
/// </summary>
/// <param name="visibility">Title bar visibility enum</param>
[Obsolete("SetTitleBarVisibility(AndroidTitleBarVisibility) is obsolete as of version 3.0. "
[Obsolete("SetTitleBarVisibility(AndroidTitleBarVisibility) is obsolete as of version 2.5. "
+ "Please use SetTitleBarVisibility(Activity, AndroidTitleBarVisibility) instead.")]
public static void SetTitleBarVisibility(AndroidTitleBarVisibility visibility)
{

Просмотреть файл

@ -10,7 +10,7 @@ namespace Xamarin.Forms.Platform.Android
{
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use NativeViewWrapperRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use NativeViewWrapperRenderer(Context) instead.")]
public NativeViewWrapperRenderer()
{
}

Просмотреть файл

@ -300,7 +300,7 @@ namespace Xamarin.Forms.Platform.Android
throw new InvalidOperationException("RemovePage is not supported globally on Android, please use a NavigationPage.");
}
[Obsolete("CreateRenderer(VisualElement) is obsolete as of version 3.0. Please use CreateRenderer(VisualElement, Context) instead.")]
[Obsolete("CreateRenderer(VisualElement) is obsolete as of version 2.5. Please use CreateRenderer(VisualElement, Context) instead.")]
public static IVisualElementRenderer CreateRenderer(VisualElement element)
{
return CreateRenderer(element, Forms.Context);
@ -1075,7 +1075,7 @@ namespace Xamarin.Forms.Platform.Android
{
bool _notReallyHandled;
[Obsolete("This constructor is obsolete as of version 3.0. Please use DefaultRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use DefaultRenderer(Context) instead.")]
public DefaultRenderer()
{
}

Просмотреть файл

@ -15,7 +15,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ActivityIndicatorRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ActivityIndicatorRenderer(Context) instead.")]
public ActivityIndicatorRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -15,7 +15,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use BoxRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use BoxRenderer(Context) instead.")]
public BoxRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -30,7 +30,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ButtonRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ButtonRenderer(Context) instead.")]
public ButtonRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -15,7 +15,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use CarouselPageRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use CarouselPageRenderer(Context) instead.")]
public CarouselPageRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -22,7 +22,7 @@ namespace Xamarin.Forms.Platform.Android
Device.Info.PropertyChanged += DeviceInfoPropertyChanged;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use DatePickerRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use DatePickerRenderer(Context) instead.")]
public DatePickerRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -22,7 +22,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use EditorRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use EditorRenderer(Context) instead.")]
public EditorRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -25,7 +25,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use EntryRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use EntryRenderer(Context) instead.")]
public EntryRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -19,7 +19,7 @@ namespace Xamarin.Forms.Platform.Android
{
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use FrameRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use FrameRenderer(Context) instead.")]
public FrameRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -24,7 +24,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ImageRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ImageRenderer(Context) instead.")]
public ImageRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -31,7 +31,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use LabelRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use LabelRenderer(Context) instead.")]
public LabelRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -31,7 +31,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ListViewRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ListViewRenderer(Context) instead.")]
public ListViewRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -25,7 +25,7 @@ namespace Xamarin.Forms.Platform.Android
{
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use MasterDetailRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use MasterDetailRenderer(Context) instead.")]
public MasterDetailRenderer() : base(Forms.Context)
{
}

Просмотреть файл

@ -17,7 +17,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use NavigationMenuRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use NavigationMenuRenderer(Context) instead.")]
public NavigationMenuRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -19,7 +19,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use NavigationRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use NavigationRenderer(Context) instead.")]
public NavigationRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -17,7 +17,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use OpenGLViewRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use OpenGLViewRenderer(Context) instead.")]
public OpenGLViewRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -11,7 +11,7 @@ namespace Xamarin.Forms.Platform.Android
{
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use PageRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use PageRenderer(Context) instead.")]
public PageRenderer()
{
}

Просмотреть файл

@ -25,7 +25,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use PickerRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use PickerRenderer(Context) instead.")]
public PickerRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -12,7 +12,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ProgressBarRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ProgressBarRenderer(Context) instead.")]
public ProgressBarRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -27,7 +27,7 @@ namespace Xamarin.Forms.Platform.Android
{
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ScrollViewRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ScrollViewRenderer(Context) instead.")]
public ScrollViewRenderer() : base(Forms.Context)
{
}

Просмотреть файл

@ -24,7 +24,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use SearchBarRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use SearchBarRenderer(Context) instead.")]
public SearchBarRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -17,7 +17,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use SliderRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use SliderRenderer(Context) instead.")]
public SliderRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -18,7 +18,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use StepperRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use StepperRenderer(Context) instead.")]
public StepperRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -12,7 +12,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use SwitchRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use SwitchRenderer(Context) instead.")]
public SwitchRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -13,7 +13,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use TabbedRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use TabbedRenderer(Context) instead.")]
public TabbedRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -13,7 +13,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use TableViewRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use TableViewRenderer(Context) instead.")]
public TableViewRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -23,7 +23,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use TimePickerRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use TimePickerRenderer(Context) instead.")]
public TimePickerRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -21,7 +21,7 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use WebViewRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use WebViewRenderer(Context) instead.")]
public WebViewRenderer()
{
AutoPackage = false;

Просмотреть файл

@ -57,7 +57,7 @@ namespace Xamarin.Forms.Platform.Android
return BitmapFactory.DecodeResourceAsync(resource, IdFromTitle(name, DrawableClass));
}
[Obsolete("GetDrawable(this Resources, string) is obsolete as of version 3.0. "
[Obsolete("GetDrawable(this Resources, string) is obsolete as of version 2.5. "
+ "Please use GetDrawable(this Context, string) instead.")]
public static Drawable GetDrawable(this Resources resource, string name)
{

Просмотреть файл

@ -14,7 +14,7 @@ namespace Xamarin.Forms.Platform.Android
{
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ViewRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ViewRenderer(Context) instead.")]
protected ViewRenderer()
{
}
@ -26,7 +26,7 @@ namespace Xamarin.Forms.Platform.Android
{
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use ViewRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use ViewRenderer(Context) instead.")]
protected ViewRenderer()
{
}

Просмотреть файл

@ -63,7 +63,7 @@ namespace Xamarin.Forms.Platform.Android
return base.DispatchTouchEvent(e);
}
[Obsolete("This constructor is obsolete as of version 3.0. Please use VisualElementRenderer(Context) instead.")]
[Obsolete("This constructor is obsolete as of version 2.5. Please use VisualElementRenderer(Context) instead.")]
protected VisualElementRenderer() : this(Forms.Context)
{
}