iphone - iOS hardware volume buttons - tell press from hold -
ok, there're lots of questions on using iphone hardware volume buttons own purposes (e.g. camera shutter); i've seen based on receiving volume change notification.
i need distinguish volume button press hold/release. sure implemented based off volume change notifications, this: on volume change event, if there's event coming shortly - that's hold (or quick double press); if no event coming within e.g. half second that's button press.
but. there's app called snapchat; use volume button press take picture, , volume button hold record video while hold. , app tells press hold - meaning press event recognised immediately, not within half second.
so question how that?
Comments
Post a Comment