is there a function that allows me to know which camera or which object is currently framed?

as the title, I would like to know if there is an instruction that returns the name of the currently selected camera or the object.

GetPlayerController->GetViewTarget?