summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-04-25 13:57:44 -0600
committerRui Marinho <me@ruimarinho.net>2016-04-25 15:57:44 -0400
commit843bc4727a40d6ca67127326facf2333f461da2d (patch)
tree5467ab3850df7f2368baa1290e983adba27f35d9 /Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs
parent07df05ced2b43446c84d47f4b7a8325abcd0f767 (diff)
downloadxamarin-forms-843bc4727a40d6ca67127326facf2333f461da2d.tar.gz
xamarin-forms-843bc4727a40d6ca67127326facf2333f461da2d.tar.bz2
xamarin-forms-843bc4727a40d6ca67127326facf2333f461da2d.zip
Make core Ticker abstract and public (#116)
* Make core Ticker abstract and public Make the core Ticker abstract and public so it can be inherited by platform implementations; remove now-unused parts of original Ticker; add CreateTicker to IPlatformServices; remove unused CreateTimer methods from IPlatformServices * Add docs for Ticker * Remove unnecessary Ticker.Default set * Move Ticker into Internals * Update Ticker docs * Remove old Ticker docs * Remove commented code
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs')
-rw-r--r--Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs25
1 files changed, 3 insertions, 22 deletions
diff --git a/Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs b/Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs
index 4d49315e..30623088 100644
--- a/Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs
+++ b/Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs
@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using System.Windows;
using System.Windows.Threading;
using Windows.System;
+using Xamarin.Forms.Internals;
using Xamarin.Forms.Platform.WinPhone;
namespace Xamarin.Forms
@@ -22,29 +23,9 @@ namespace Xamarin.Forms
Deployment.Current.Dispatcher.BeginInvoke(action);
}
- public ITimer CreateTimer(Action<object> callback)
+ public Ticker CreateTicker()
{
- return new _Timer(new Timer(o => callback(o)));
- }
-
- public ITimer CreateTimer(Action<object> callback, object state, int dueTime, int period)
- {
- return new _Timer(new Timer(o => callback(o), state, dueTime, period));
- }
-
- public ITimer CreateTimer(Action<object> callback, object state, long dueTime, long period)
- {
- return new _Timer(new Timer(o => callback(o), state, dueTime, period));
- }
-
- public ITimer CreateTimer(Action<object> callback, object state, TimeSpan dueTime, TimeSpan period)
- {
- return new _Timer(new Timer(o => callback(o), state, dueTime, period));
- }
-
- public ITimer CreateTimer(Action<object> callback, object state, uint dueTime, uint period)
- {
- return new _Timer(new Timer(o => callback(o), state, dueTime, period));
+ return new WinPhoneTicker();
}
public Assembly[] GetAssemblies()