Skip to content

Conversation

@li-manssing
Copy link

@li-manssing li-manssing commented Oct 30, 2025

Summary

Add support to perform custom action on hearing shake

  • Added boolean property enableCustomHandlingOfShake to enable/disable
    custom handling of shake event.
  • Added method performCustomActionOnShake which can be overridden to provide
    custom action to be performed on detecting shake.
  • Updated the hearShake method to perform the provided custom action, if custom
    handling is enabled.

Testing Done

Tested locally and verified that no existing functionality is affected.

noExistingFunctionalityAffected.mp4

Mansi Singh added 2 commits October 30, 2025 17:05
- Added boolean property enableCustomHandlingOfShake to enable/disable
  custom handling of shake event.
- If property is false, handle shaky initialisation flow at shaky-android
  side else at listeners side.
@li-manssing li-manssing marked this pull request as ready for review November 4, 2025 09:18
* This method can be overridden to provide custom action to be performed on shake when
* {@link #enableCustomHandlingOfShake} is enabled.
*/
public void performCustomActionOnShake(@NonNull Activity activity){}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you adding sample implementation for this in sample app?

Copy link
Author

@li-manssing li-manssing Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, we can add it once done with the current priority tasks.

Please let us know if we should prioritise this instead.

@li-advait li-advait merged commit df52177 into linkedin:main Nov 13, 2025
2 checks passed
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.

2 participants