Attention.backlight best practices

Are there any best practices when using Attention.backlight? I've found it doesn't work inside onUpdate or onLayout but does work (most of the time) inside a timer callback.

I'm calling Attention.backlight(true) on a FR265.

Thanks!