noke-inc / noke-mobile-library-android

An Android library used in conjunction with the Nokē Core API to interact with Nokē Devices
Apache License 2.0
7 stars 19 forks source link

How I can check noke auto disconnect when I let it wait too long #3

Closed linrium closed 6 years ago

linrium commented 6 years ago

How I can distinguish between a device (noke) auto disconnect when I let it wait too long and when I close it by myself. It emits the same event (disconnect event). Thank you.

khanhduytran commented 6 years ago

Same with your ideal. I want to know how can i distinguish between those state too.

sapsley commented 6 years ago

Version 0.5.0 contains a new callback method: onNokeShutdown(NokeDevice noke, Boolean isLocked, Boolean didTimeout)

This is called when the lock goes to sleep.