Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
nanyaran
Posts: 19
Registered: ‎06-21-2012
My Device: z10

Is it possible to lock a phone without timer controlling

I would like to build a function that it can detect charging state of a phone, and if the phone is charging, then I want to write a statement to lock the phone. After it detect the phone is fully charged, the phone can be unlocked. Anyone know how can i implement that? I looked over the documentation, there are some data types are related to lock/unlock, but i dont know what function should I use?

Contributor
nanyaran
Posts: 19
Registered: ‎06-21-2012
My Device: z10

Re: Is it possible to lock a phone without timer controlling

Does anybody know????