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

Screen orientation in MiniApp #164

Open
QingAn opened this issue Apr 30, 2021 · 2 comments
Open

Screen orientation in MiniApp #164

QingAn opened this issue Apr 30, 2021 · 2 comments

Comments

@QingAn
Copy link
Contributor

QingAn commented Apr 30, 2021

The use case of detecting MiniApp's screen orientation and orientation change event, was discussed in https://www.w3.org/2021/04/29-MiniApp-minutes.html.

Here are two things we need to discuss:

  1. Can MiniApp reuse the The Screen Orientation API?
  2. What is the next step: create a new work item (something like "MiniApp Screen Ori"?) in MiniApp CG, or support this use case in existing spec (maybe MiniApp Lifecycle?)

Any thought?

@zhangyongjing
Copy link
Contributor

On the 2nd point, using an existing spec would be the best choice if it does fit. But I'm not so sure if the screen orientation events and APIs are coupled with the 'lifecycle' aspect. It seems more about UI operation.
Anyhow, we should first understand the difference from 'The Scree Orientation API'.

@Sharonzd
Copy link
Contributor

Sharonzd commented Jun 17, 2021

As regards the 2nd point, It seems that the interfaces related to Orientation are not suitable for the lifeCycle specification, and it is recommended to add a series of MiniApp Screen Orientation API. The Naming of the API could be <host>.screen.orientation.xxx or <host>.screenOrientation.xx or miniapp.screenOrientation.xx or other (need to discuss).

Because the Screen orientation are not only included events, but also include some methods which can be called in real time, such as lock() and unlock().

Also do we need to add a specification on how the API is mounted and named (something like MAOM, abbreviation of MiniApp Object Model)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants