Create default ScrollFeedbackProvider creator
We're now hiding the specific platform implementations of the ScrollFeedbackProvider interface, and instead, creating a method for clients to get a default implementation of the interface. This is because we think that - there is not much value for clients to know what kind of feedback is being provided on the device - more work for client to identify and create the right feedback provider Currently, this creator just gives an instance of the Haptic feedback provider. If/when we get more implementations of the interface, we can wrap all of those in a single implementation of the interface and return it from this new creator method. This allows for a consistent scroll feedback across different surfaces on the device, while also giving the OEM control of the device's feedback behavior. We're also removing the usage of IntDefs for the scroll feedback params, as these are expected to come from a system generated motion event, as documented in the interface's Javadoc. Bug: 299647683 Test: unit tests Change-Id: I3046da85c62a2c16489103e49d4d928f8d94d68a
Loading
Please register or sign in to comment