Remove the clock from the lockscreen

Hello, processors!

I was thinking about making a custom lockscreen for my Android devices, and I thought Processing would be a good way to do it. I tried the “Live Wallpaper” tutorial, and it worked just fine. There’s just one thing: It still shows the clock widget over the wallpaper on my (MIUI) phone. Is there a way to disable the widgets in the lockscreen? I’ve noticed other lockscreens don’t show the default clock widget, so there must be a way, maybe using the Java api somehow.