Jump to content


Photo

TUnimButton Haptic Feedback - how ?

Haptic

  • Please log in to reply
6 replies to this topic

#1 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 155 posts
  • LocationMelbourne Australia

Posted 02 December 2017 - 05:37 AM

How can we get Hapatic Feedback to the user when he taps a button ?


  • 0

Andy


#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3625 posts

Posted 02 December 2017 - 05:59 AM

Hi,

 

Sorry, please explain a bit more


  • 0

#3 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 155 posts
  • LocationMelbourne Australia

Posted 02 December 2017 - 07:47 AM

Hapatic - vibrate phone to give user feedback that a button was pressed.


  • 0

Andy


#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3625 posts

Posted 02 December 2017 - 08:14 AM

Ok, we will check it
  • 0

#5 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3625 posts

Posted 04 December 2017 - 05:15 AM

You can try to use this:

 

WebKit: https://www.w3.org/TR/vibration/

 

Examples: https://www.w3.org/T...ation/#examples

 

How to use:

UniSession.AddJS('navigator.vibrate(500);');

  • 0

#6 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 155 posts
  • LocationMelbourne Australia

Posted 04 December 2017 - 08:03 PM

Thanks Farshad but I am afraid this is the error I got on an iPhone.

 

 

Attached Files


  • 0

Andy


#7 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 155 posts
  • LocationMelbourne Australia

Posted 06 December 2017 - 01:22 AM

Any suggestions Farshad ?


  • 0

Andy





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users