hi
i want to know if i can pause or stop device vibrate ( android ) …
ex: just like putting option to music and sound , i am putting option to disable to enable device vibration . but i am not able to do that
so any help
Thanks
hi
i want to know if i can pause or stop device vibrate ( android ) …
ex: just like putting option to music and sound , i am putting option to disable to enable device vibration . but i am not able to do that
so any help
Thanks
You can’t turn it on and off. You can only request that the device actually vibrate at any given time.
What I normally do is have the vibrate() call inside of it’s own function, which checks for whether the user has set the toggle to ON each time I want the device to vibrate.
local function vibeHitOn() if GS.VibeOn == true then system.vibrate() elseif GS.VibeOn == false then return false end end
Thanks Alex For your reply
now i can see it . actually it is so obvious and i implement the same concept in the sound and music option :).
You can’t turn it on and off. You can only request that the device actually vibrate at any given time.
What I normally do is have the vibrate() call inside of it’s own function, which checks for whether the user has set the toggle to ON each time I want the device to vibrate.
local function vibeHitOn() if GS.VibeOn == true then system.vibrate() elseif GS.VibeOn == false then return false end end
Thanks Alex For your reply
now i can see it . actually it is so obvious and i implement the same concept in the sound and music option :).