Lock screen on iOS and Android -


i'm building app phonegap. want create button on screen , add lock-screen event onclick. searches on other posts tries check if screen locked , execute or before something. need event (lock screen) happen when clicking button. it's lock physical button on iphone happens clicking button.

i need both ios , android if give me hint one, welcomed.

thank you!

for android side;

as far know app need registered on device admin app. can use device administration api lock screen devicepolicymanager.locknow()


Comments

Popular posts from this blog

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

Why does PHP consider 0 to be equal to a string? -

formula - R: how to pass in a reference to the variable in glm or lm? -