-
Notifications
You must be signed in to change notification settings - Fork 137
RFC: New APIs to customise the DevMenu #925
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
base: main
Are you sure you want to change the base?
RFC: New APIs to customise the DevMenu #925
Conversation
```kotlin | ||
data class DevMenuConfiguration( | ||
val isDevMenuEnabled: Boolean = BuildConfig.DEBUG, | ||
val minNumberOfShakes: Int = 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how are we handling the 'disabled' state here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potentially renaming this to isShakeGestureEnabled
would make for a better API that is similar between Android & iOS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how are we handling the 'disabled' state here?
Not explicitly, though it could be effectively disabled by setting a large number.
Potentially renaming this to isShakeGestureEnabled would make for a better API that is similar between Android & iOS
I agree, I updated the proposal with that change.
Co-authored-by: Nicola Corti <[email protected]>
Co-authored-by: Nicola Corti <[email protected]>
Co-authored-by: Nicola Corti <[email protected]>
Proposes new APIs that would allow frameworks to customize the DevMenu.
View the rendered RFC