forked from rookiejava/maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Apply to patch related to Animation (dotnet#1436) - Apply to register Microsoft.Maui.Graphics Platforms (dotnet#1441) - and so on.
- Loading branch information
1 parent
623ff32
commit 031f9f9
Showing
7 changed files
with
92 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Controls/src/Core/Platform/ModalNavigationService/ModalNavigationService.Tizen.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#nullable enable | ||
|
||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.Maui.Controls.Platform | ||
{ | ||
internal partial class ModalNavigationService | ||
{ | ||
public Task<Page> PopModalAsync(bool animated) | ||
{ | ||
// TODO: Need to implementation | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task PushModalAsync(Page modal, bool animated) | ||
{ | ||
// TODO: Need to implementation | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System.Threading; | ||
using Tizen.Applications; | ||
|
||
namespace Microsoft.Maui.Animations | ||
{ | ||
public class NativeTicker : Ticker | ||
{ | ||
readonly Timer _timer; | ||
readonly SynchronizationContext? _context; | ||
bool _isRunning; | ||
|
||
public override bool IsRunning => _isRunning; | ||
|
||
public NativeTicker() | ||
{ | ||
if (SynchronizationContext.Current == null) | ||
{ | ||
TizenSynchronizationContext.Initialize(); | ||
} | ||
|
||
_context = SynchronizationContext.Current; | ||
_timer = new Timer((object o) => HandleElapsed(o), this, Timeout.Infinite, Timeout.Infinite); | ||
} | ||
|
||
public override void Start() | ||
{ | ||
_timer.Change(16, 16); | ||
_isRunning = true; | ||
} | ||
|
||
public override void Stop() | ||
{ | ||
_timer.Change(-1, -1); | ||
_isRunning = false; | ||
} | ||
|
||
void HandleElapsed(object state) | ||
{ | ||
_context?.Post((o) => Fire?.Invoke(), null); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters