开发者

ShakeGesture library WP7 - Shake count

i've being reading about your ShakeGesture library and it's really good! But i was开发者_开发技巧 wondering if there is a way for use this library for count the numbers of a shake. For example, i want to have an app where the user needs to shake the phone 30 times. If the user shakes it 10 times, something will happen. If 20 times, other thing will happen.

Is something like this possible?


The ShakeGesture library doesn't include a way of reporting how many times a device was moved as part of a shake.

However, it does allow you to customize the MinimumRequiredMovesForShake. You could try creating multiple instances of the listener, each configured to listen for a different number of moves and then handle the events differently.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜