Getting animation tracks

Since Humanoid:getplayinganimationtracks is deprecated what should I use?

Animator:GetPlayingAnimationTracks()