CustomVariable & CustomDimension Scope as Visit & Page in Android

How to send Custom Variable as a Visit or Page in android, because TrackerHelper class does not have any method defined for this

TrackHelper.track().dimension(...) // Custom Dimension
TrackHelper.track().visitVariables(...) // Visit Variable
TrackHelper.track().variable(...) // PageVariable

:thinking:

Thankyou for the reply

TrackHelper.track().visitVariables(…) // Visit Variable
TrackHelper.track().variable(…) // PageVariable.
the above two methods are showing as deprecated, can i use those?

what is the different between these two
TrackHelper.track().dimension(…) // Custom Dimension
vs
TrackHelper.track().screen(“Screen 1”).dimension(…)