Android : Can I tell if a user has accepted my activity's request for screen pinning?

on Friday, October 24, 2014


I was reading the overview for the new Android 5.0 Lollipop API (https://developer.android.com/about/versions/android-5.0.html), and I became interested in the Screen Pinning feature.


I can successfully request that Screen Pinning be started by my Activity, but I have no idea if the user accepts the pinning request or not. The startLockTask() method has no return value, and I didn't see any mention of a callback.


I would like my activity to react differently depending on whether or not the screen has been successfully pinned. Is this possible or are my hopes a bit too high?


Thanks.


0 comments:

Post a Comment