Skip to content

Monitor functions should return error when the initialization is not done for mobiles #3168

@hajimehoshi

Description

@hajimehoshi

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

What feature would you like to be added?

Now DeviceScaleFactor returns an invalid value or crashes when this is called in an init function where the initialization is not done yet. To avoid the confusion, monitor functinos should return an error.

As this is a breaking change, let's do this in v3.

Why is this needed?

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions