ROCK 5B Android HDMI Input

I would like to try out the Rock5 SBC but first I was wondering how the HDMI input works in Android. Can you use the Camera/Camera2 API to record video? I’m currently using an older RK3399 SBC that works like this and it would be great if my existing Android worked on this hardware.

Thanks!