Skip to content

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

j-piasecki
Copy link

Proposes new APIs that would allow frameworks to customize the DevMenu.

View the rendered RFC

```kotlin
data class DevMenuConfiguration(
val isDevMenuEnabled: Boolean = BuildConfig.DEBUG,
val minNumberOfShakes: Int = 2,
Copy link
Member

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?

Copy link
Member

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

Copy link
Author

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.

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

Successfully merging this pull request may close these issues.

3 participants