# Deprecated API

## Contents

- Deprecated Methods

Deprecated Methods
Method and Description
com.parse.ParseQuery.getUserQuery() Please use `ParseUser.getQuery()` instead.
com.parse.ParseObject.refresh() Please use `ParseObject.fetch()` instead.
com.parse.ParseObject.refreshInBackground(RefreshCallback) Please use `ParseObject.fetchInBackground(GetCallback)` instead.
com.parse.ParsePush.setPushToAndroid(boolean) Please use `ParsePush.setQuery(ParseQuery)` with a `ParseQuery` targeting `ParseInstallation`s with a constraint on the `deviceType` field. If you use `#setPushToAndroid(boolean)` or `ParsePush.setPushToIOS(boolean)`, then you will only be able to send to one of these two device types (e.g. and not Windows).
com.parse.ParsePush.setPushToIOS(boolean) Please use `ParsePush.setQuery(ParseQuery)` with a `ParseQuery` targeting `ParseInstallation`s with a constraint on the `deviceType` field. If you use `#setPushToIOS(boolean)` or `ParsePush.setPushToAndroid(boolean)`, then you will only be able to send to one of these two device types (e.g. and not Windows).
com.parse.ParseAnalytics.trackAppOpened(Intent) Please use `ParseAnalytics.trackAppOpenedInBackground(android.content.Intent)` instead.
com.parse.ParseAnalytics.trackEvent(String) Please use `ParseAnalytics.trackEventInBackground(String)` instead.
com.parse.ParseAnalytics.trackEvent(String, Map<String, String>) Please use `ParseAnalytics.trackEventInBackground(String, java.util.Map)` instead.