summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/Internals/Ticker.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/Internals/Ticker.cs')
-rw-r--r--Xamarin.Forms.Core/Internals/Ticker.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Internals/Ticker.cs b/Xamarin.Forms.Core/Internals/Ticker.cs
index 7fe60cc..9b7c575 100644
--- a/Xamarin.Forms.Core/Internals/Ticker.cs
+++ b/Xamarin.Forms.Core/Internals/Ticker.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
@@ -14,7 +15,7 @@ namespace Xamarin.Forms.Internals
int _count;
bool _enabled;
- internal Ticker()
+ protected Ticker()
{
_count = 0;
_timeouts = new List<Tuple<int, Func<long, bool>>>();
@@ -22,6 +23,8 @@ namespace Xamarin.Forms.Internals
_stopwatch = new Stopwatch();
}
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SetDefault(Ticker ticker) => Default = ticker;
public static Ticker Default
{
internal set { s_ticker = value; }