Skip to content

x/mobile/app: detect device orientation #10327

@rakyll

Description

@rakyll

A function that returns the device's current orientation would be handy to switch between portrait- and landscape-optimized user interfaces.

const (
   OrientationLandscape = iota
   OrientationPortrait
   // ...
)

func Orientation() int

Thoughts? cc/ @crawshaw @hyangah

Metadata

Metadata

Assignees

Labels

mobileAndroid, iOS, and x/mobile

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions