[List]How to work with a list of objects?

Hy everyone,
All the examples I see on the target lists of data related to an object. But for example, how do you do it when you want to save all the objects selected in the scene in a list or make a save button that only fills the list if you decide to?

You have to target context?

Have a nice day,

what about
bpy.context.selected_objects

Yeah, but how do we get from that to a UIlist when it’s the object itself that’s being targeted?

Hue,
I think I understand, I think I’m going to create an operative who’s going to get the UIList and fill it in.

If it works, I’ll paste in the code to get an opinion.