Skip to content
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

Add feedback vibration using Taptic Engine on iOS #1338

Merged
merged 5 commits into from Jan 2, 2020

Conversation

@ichan-mb
Copy link
Contributor

ichan-mb commented Dec 29, 2019

On iOS, now you can do feedback vibration by leveraging Taptic Engine. There are 9 types of vibration :

  • Soft
  • Rigid
  • light
  • Medium
  • Heavy
  • Success
  • Warning
  • Error
  • Selection

To activate it, just pass those value to VibrationType property

Example

<StackPanel Margin="20">
   <!-- On iOS it will do a 'heavy' vibration using Taptic Engine -->
   <!-- On Android it will use standard vibration for a duration 0.4 second  -->
   <Button Margin="10" Text="Heavy Vibrate">
   	<Clicked>
   		<Vibrate VibrationType="Heavy" />
   	</Clicked>
   </Button>
</StackPanel>

This PR contains:

  • Changelog
  • Documentation
  • Tests
@ichan-mb ichan-mb force-pushed the ichan-mb:feature_vibration branch from 0ea2863 to 6e4eda0 Dec 29, 2019
@ichan-mb ichan-mb force-pushed the ichan-mb:feature_vibration branch from 6e4eda0 to 1dbebb1 Dec 29, 2019
Source/Fuse.Vibration/Vibration.uno Outdated Show resolved Hide resolved
Source/Fuse.Vibration/Vibration.uno Outdated Show resolved Hide resolved
Source/Fuse.Vibration/Vibrate.uno Outdated Show resolved Hide resolved
ichan-mb added 2 commits Jan 1, 2020
@mortend
mortend approved these changes Jan 2, 2020
Copy link
Member

mortend left a comment

Thank you!

@mortend mortend merged commit 40be310 into fuse-open:master Jan 2, 2020
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.