-
Notifications
You must be signed in to change notification settings - Fork 3
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
Android port complete #23
base: dev
Are you sure you want to change the base?
Conversation
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.
Please re-tartget port on dev. Also I think that pointer matcher needs a bit of polishing
@OptIn(ExperimentalFoundationApi::class) | ||
@Suppress("UNCHECKED_CAST") | ||
public fun <T : Any, F : DomainFeature<T>> FeatureRef<T, F>.onClick( | ||
public interface PointerMatcher { |
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.
Please add documentation for public interface
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.
Why no fun interface?
public fun matches(event: PointerEvent): Boolean | ||
} | ||
|
||
public expect fun <T : Any, F : DomainFeature<T>> FeatureRef<T, F>.onClick( | ||
pointerMatcher: PointerMatcher, | ||
keyboardModifiers: PointerKeyboardModifiers.() -> Boolean = { true }, |
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.
Does it make sense to have keyboard modifiers on android?
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.
It seems that PointerMatcher already has all information for keyboard modifiers, so it should be included there. Not as separate check.
No description provided.