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

Give typed access to configuration depending on the platform #31

Open
gzoritchak opened this issue Sep 26, 2018 · 0 comments
Open

Give typed access to configuration depending on the platform #31

gzoritchak opened this issue Sep 26, 2018 · 0 comments
Labels

Comments

@gzoritchak
Copy link
Contributor

A configuration may have some generic parameters that apply on all platform and some that only make sense on a specific platform. It should be possible to provide access to these parameters using the same API but having different params depending on the platform.

viz {
    configure { // on common code
          resizable = false
    }
}
viz {
    configure { // on android
          minimumBatteryMinimumForAnimations = 40.pct
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant