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
Member

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

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
Copy link
Member

@mortend mortend left a comment

Choose a reason for hiding this comment

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

Thank you!

@mortend mortend merged commit 40be310 into fuse-open:master Jan 2, 2020
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