项目作者: LuisRodriguezLD

项目描述 :
Exposes the UIFeedbackGenerator native API to use in Javascript
高级语言: Uno
项目地址: git://github.com/LuisRodriguezLD/Fuse-TapticFeedback.git
创建时间: 2017-09-27T15:03:46Z
项目社区:https://github.com/LuisRodriguezLD/Fuse-TapticFeedback

开源协议:

下载


Fuse-TapticFeedback

What is this?

Exposes Apple’s UIFeedbackGenerator to use with Fuse.
Written in Swift and implemented using Foreign code.

How do I use it?

Quite simple, really.
Just require it and you are ready to go.

It has three styles:

  • Light
  • Medium
  • Heavy

There are also:

  • Success
  • Error
  • Warning

Example

  1. var Feedback = require("FeedbackModule");
  2. Feedback.Raise("Success");

Important Notes:

  • Only iPhone 7/7 plus and older have Taptic engine.
  • This API was introduced in iOS 10, you need to build for that OS.
  • Swift 3.2 is necessary if building with Xcode 9.