Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spec] Implement Device class functionality to Core #1305

Closed
Tracked by #22
jsuarezruiz opened this issue Jun 14, 2021 · 1 comment
Closed
Tracked by #22

[Spec] Implement Device class functionality to Core #1305

jsuarezruiz opened this issue Jun 14, 2021 · 1 comment
Assignees
Projects

Comments

@jsuarezruiz
Copy link
Contributor

[The feature]

The Device class contains a number of properties and methods to help developers customize layout and functionality on a per-platform basis.

  • Flags - Used to use experimental APIs in Xamarin.Forms. Obsolete.
  • SetFlags - Remove.
  • FlowDirection -Move to Window.
  • SetFlowDirection - Remove.
  • Idiom - Move to MauiContext and make it use essentials.
  • Info - Obsolete.
  • SetIdiom - Remove.
  • SetTargetIdiom - Remove.
  • IsInvokeRequired - obsolete (hidden)
  • PlatformInvalidator - Try to remove.
  • Invalidate - Try to remove.
  • RuntimePlatform - Make it use essentials and move these to Window, use Application.Windows.First() to back these.
  • BeginInvokeOnMainThread(Action)
  • GetNamedColor(string) - Move to .NET MAUI Graphics.
  • GetNamedSize (multiple overloads) - TODO find the 'current' way to do this.
  • StartTimer - Move to Application or Window? Maybe this goes away and is handled by animation stuffPlatformServices
  • RequestedTheme - Move to Window, use Essentials implementation.
  • RuntimePlatform - Remove.
  • GetHash - Remove.
  • GetMD5Hash - Remove.
  • GetNamedColor - Remove.
  • GetNamedSize - Remove.
  • GetNativeSize - Gets renderer or handler and calls GetDesiredSize - remove.
  • GetStreamAsync - Remove.
  • GetUserStoreForApplication - Remove.
  • OpenUriAction - Obsolete, use essentials.
  • QuitApplication - Move to Application.
  • StartTimer - Move to window? Maybe this goes away and is handled by animation stuff
  • Dispatcher - find window of mainpage and use that dispatcher.
  • MainPage / CreateWindowMake CreateWindow return MainPage, if no mainpage is set throwSet MainPage, go through windows to find window with current mainpage, and replace mainpage.

Difficulty : [medium]

@mattleibow
Copy link
Member

Duplicate of #1965

@mattleibow mattleibow marked this as a duplicate of #1965 Sep 21, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Preview 6
Awaiting triage
Development

No branches or pull requests

2 participants