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

New Developer
Posts: 1
Registered: ‎07-16-2014
My Device: BlackBerry Z3
My Carrier: Vinaphone

How to turn off and lock device in BlackBerry 10

Hi all,


I just wanna make a simple app to turn off and lock device BB 10, I do some research but just see this field is read-only:

bb:Smiley Tonguelatform:Smiley Very HappyeviceLockState::TypelockState [read-only]"


Can you please help me to resolve it?

Thank you.

Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to turn off and lock device in BlackBerry 10

welcome to the support forums.

there is no API to do that
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter