How to implement a Number Picker with dynamic title?

Former Member
Former Member

As title, I'd like to implement a Picker Ui which the Title will change to "Set seconds" when I selected the first item

like the figure below:

I'm using the Picker sample in the SDK, while I can only get access to the number I selected with onAccept() function

Is there a better way to implement this kind of dynamic picker title?

Lots of thanks!!